public void do_pass(double amount) { credit_amount = amount; // JOptionPane.showMessageDialog(null, to_users.user_level1); if (to_users.user_level1.equals("3")) { btn_add.setVisible(true); hiden(false); } else { btn_add.setVisible(false); hiden(true); } }
private void hiden(boolean aw) { btn_ok1.setVisible(aw); jLabel13.setVisible(aw); jLabel14.setVisible(aw); }