Multiple JFrames , Keeping track of the main first JFrame
843804Dec 29 2004 — edited Jan 3 2005Say 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