I'm new to desktop java and am doing a program with swing
, and would like to know how to 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");
}