コード例 #1
0
 @Override
 public void actionReset() {
   code.setText("Auto");
   nama.setText("");
   username.setText("");
   password.setText("");
   ulang.setText("");
   jenisIdentitas.setText("");
   noIdentitas.setText("");
   alamat.setText("");
   kota.setText("");
   hp.setText("");
   status.setSelectedIndex(0);
   List<Object> os = App.getHakAks().getAll();
   os.add(0, App.getT("Pilih Hak Akses"));
   hakAksesModel = new DefaultComboBoxModel<Object>(os.toArray());
   hakAkses.setModel(hakAksesModel);
   hakAkses.setSelectedIndex(0);
   requestDefaultFocus();
 }
コード例 #2
0
 public void initComponent() {
   code = new TextField();
   nama = new TextField();
   username = new TextField();
   password = new PasswordField();
   ulang = new PasswordField();
   jenisIdentitas = new TextField();
   noIdentitas = new TextField();
   alamat = new TextArea();
   salamat = new ScrollPane(alamat);
   kota = new TextField();
   hp = new TextField();
   status = new ComboBox(App.getPegawaiDao().getStatusData());
   List<Object> os = App.getHakAks().getAll();
   os.add(0, App.getT("Pilih Hak Akses"));
   hakAksesModel = new DefaultComboBoxModel<Object>(os.toArray());
   hakAkses = new ComboBox(hakAksesModel);
   hakAkses.setSelectedIndex(0);
 }