4
I am new in java for desktop and am making a program with swing
, and would like to know how to make a JInternalFrame
open after login is done, follow the code for analysis.
if(usuarioText.getText().equals(objConexao.rs.getString("nome"))
&& senhaText.getText().equals(objConexao.rs.getString("senha"))){
//CadastroForm é um JInternalFrame
CadastroForm form = new CadastroForm();
form.setVisible(true);
dispose();
}else{
JOptionPane.showMessageDialog(null, "usuário invalido");
}