showDialog() equivalent in java
807600Sep 12 2007 — edited Sep 12 2007HI! I have 2 jframe class. In jframeA i have a button in which if clicked, jframeB will be created and will be displayed. However, If I click the button again in jFrameA, another instance of jFrameB is created/duplicated and is displayed.
What I want is when jFrameB is displayed, no other instance of it will be created when I click again the button in jFrameA. In this way, only one instance of jFrameB is created.
In C# i use the function .showDialog(this) to be able to do it.
PLease help.