1
I’m developing an application that uses JInternalFrame
within a JDesktop
. When I push the button, this one JInternalFrame
is instantiated and the window is opened, however, if I press the button again, it will open several identical windows. What is the best way to identify this JinternalFrame
open so that when the button is pressed, it will not open another?
I tried to use isvisible()
but I didn’t get any results.
The event that calls the Jinternalframe is this:
private void jButton13MouseClicked(java.awt.event.MouseEvent evt) {
Fimplantar n = new Fimplantar();
jDesktopPane1.add(n);
n.setPosicao();
}