File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes JFrame won't setVisible( false ) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JFrame won Watch "JFrame won New topic
Author

JFrame won't setVisible( false )

Kevin Cary
Ranch Hand

Joined: Jan 24, 2001
Posts: 53
Strange problem. I am developing an application using 2 JFrames.
Both JFrames are loaded during start up but only JFrame1 is visible. Pressing a button on JFrame1 sets JFrame1 invisible and JFrame2 visible. What happens is JFrame1 doesn't disappear and JFrame2 appears on top of JFrame1. The strange thing is this only happens once and this bug clears after switching back and forth from JFrame1 and JFrame2. Have you seen or heard of anything like this before? I've tried waiting before pressing the JButton but this doesn't help.
Jahanzeb Sayal
Greenhorn

Joined: Mar 02, 2001
Posts: 21
you should post the code for the loading & for the action event of the button on JFrame1 just post the outline it will help me to find out the problem .

Sayal
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JFrame won't setVisible( false )
 
Similar Threads
How to exit JFrame2 when going back to JFrame1
how to create model window
jpanel position
Help needed in understanding Swing components!!
frame minimization