Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Don't want to show the panel building

 
Steve Wood
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ensure setVisible() is coded after the panel is constructed
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic