This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Don't want to show the panel building Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Don Watch "Don New topic
Author

Don't want to show the panel building

Steve Wood
Ranch Hand

Joined: Jan 08, 2003
Posts: 137
Hi guys,

I've noticed that sometimes when you create a JPanel and fill it with components, it is shown to the end user.

What I mean is. Even though the operation happens very quickly, you can still see the system constructing the panel.

Is there a way to stop this from happening? Am I doing something in the wrong order?

Any help is much appreciated.

Cheers,

Steve
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
ensure setVisible() is coded after the panel is constructed
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Don't want to show the panel building
 
Similar Threads
repaint problem
quick question about Frame
about add component to panel
Client view object
Hide and unhide panel