I'm developing an application that uses JInternalFrame
within a JDesktop
. When I press the button, this JInternalFrame
is instantiated and the window is opened, however, if I press the button again, it will open several different windows. What is the best way to identify this% open% so that when the button is pressed, it will not open another equal?
I tried to use JinternalFrame
but did not 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();
}