Skip to Main Content

Java SE (Java Platform, Standard Edition)

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!

Multiple JFrames , Keeping track of the main first JFrame

843804Dec 29 2004 — edited Jan 3 2005
Say i have a main JFrame, theres a button on it which opens another JFrame. Currently im closing the main one and creating the second, and then when the second closes im reloading the main.

What i really want to do is set the main JFrames visiable property to false and then load the second one and when that one exits set the mains visiable back to true. But from the second frame ... i dont have a handle to the main frame.. how is this done?... do i have to pass a intance of the main frame to the second frame?? thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 31 2005
Added on Dec 29 2004
5 comments
139 views