2
2
if(uname.isEmpty()){
error = true;
//JOptionPane.showMessageDialog(null,"UserName Cannot be empty.");
//errorla.setText("UserName Cannot be empty !.");
}
if(pword.isEmpty()){
error = true;
//JOptionPane.showMessageDialog(null,"Password Cannot be empty.");
//errorla.setText("Password Cannot be empty !.");
}
if(error){
errorla.setText("UserName & Password Cannot be empty !.");
}
rs = pst.executeQuery();
if(rs.next()){
SystemDashbord obj = new SystemDashbord();
obj.setVisible(true);
this.dispose();
}else{
errorla.setText("UserName or Password Invalid !.");
}
//this.dispose();
} catch (SQLException ex) {
Logger.getLogger(SystemLogin.class.getName()).log(Level.SEVERE, null,
ex);
}