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!

can you tell if a jframe is open

843806Aug 29 2008 — edited Aug 29 2008
is there a method to show if a static jframe is showen

say if i have main frame in one class. then i show the the second jframe
with .show() is there any way to tell in the main class that the second frame is showen?

here's my second classes frame that gets showen
  public static void show() 
        {
		
		FrameColor frame = new FrameColor();
		frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		frame.setSize(150, 100);
		frame.setVisible(true);
                frame.setAlwaysOnTop(true);
	}
Edited by: nicchick on Aug 28, 2008 10:55 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 26 2008
Added on Aug 29 2008
8 comments
153 views