Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

showDialog() equivalent in java

807600Sep 12 2007 — edited Sep 12 2007
HI! 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 10 2007
Added on Sep 12 2007
3 comments
267 views