0
How to check whether a JInternalFrame
is already open in the JDesktopPane
and, if so, put him in focus on others? I have tried several ways I found searching, but always opens a new frame, even if it is already open.
This is the code executed by clicking on the corresponding item in Jmenu:
private void jMenuItemRegisterEmployeeActionPerformed(java.awt.event.ActionEvent evt) {
RegisterEmployeeJInternalFrame register = new RegisterEmployeeJInternalFrame();
jDesktopPaneMain.add(register);
register.setVisible(true);
}
It worked! Perfect! Thank you very much, Diego!
– Lucas
@Lucas dispose! :)
– user28595