private void loginButtonActionPerformed( java.awt.event.ActionEvent evt) { // GEN-FIRST:event_loginButtonActionPerformed try { // TODO add your handling code here: if (isValidUser(TxtLoginNim.getText(), String.valueOf(txtLoginPwd.getText()))) { this.mhsPerson = mhsService.getByNim(TxtLoginNim.getText()); if (mhsPerson != null) { this.setTitle("Login : "******" - " + mhsPerson.getNama()); } this.menuPanel(true); this.loadDosen(); this.isiteks(); loginMenu.setEnabled(false); logoutMenu.setEnabled(true); this.mkList = mkService.getByProdi(mhsPerson.getProdi()); this.loadKrs(); this.isitabelKrs(); if (detailList.isEmpty()) { simpan = false; } else { simpan = true; } dialogLogin.setVisible(false); } else { JOptionPane.showMessageDialog(this, "kesalahan Login"); TxtLoginNim.setText(""); txtLoginPwd.setText(""); TxtLoginNim.requestFocus(); } } catch (RemoteException ex) { Logger.getLogger(MenuUtama.class.getName()).log(Level.SEVERE, null, ex); } } // GEN-LAST:event_loginButtonActionPerformed
void isiteks() { txtNim.setText(mhsPerson.getNim()); txtNama.setText(mhsPerson.getNama()); TxtJur.setText(mhsPerson.getProdi()); TxtDsn.setText(dsnPerson.getDosen()); txtJumlahKrs.setText(String.valueOf(mhsPerson.getJumlah_krs())); txtTa.setText("2010/2011"); }