I want to make an if statement, BUT
I need to return the value of setVisible so I can make a statment like:
if(visible = false)
{
haha theres no code in here <_<
}
I have no idea to return the value of setVisible.
EDIT:
All of my JFrames are seperate programs called by the Main program, I want all of the frames to run individually and not together, chromatically one after the other at an actionPerformed event. But in the main program I need to determine whether a frame is set to visible, How would I go about doing this?
EDIT2:
That or if there is some other way I could make an external JFrame run, when it closes it would assign something a value which would trigger the next external JFrame to run, but I cant seem to grasp what would trigger it.
Edit
It looks to me like you may want to be using a
WindowListener. You can implement theWindowClosingmethod to have it display the nextJFrame.JFramehas the methodisVisible(). You can use that to determine if the frame is visible or not.