A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
Swing / AWT / SWT
Author
Don't want to show the panel building
Steve Wood
Ranch Hand
Joined: Jan 08, 2003
Posts: 137
posted
Jan 06, 2006 14:47:00
0
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
posted
Jan 06, 2006 17:05:00
0
ensure setVisible() is coded after the panel is constructed
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Don't want to show the panel building
Similar Threads
about add component to panel
quick question about Frame
Client view object
repaint problem
Hide and unhide panel
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter