Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

repaint frame  RSS feed

 
Ian Cockcroft
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am strating a window frame and then from the menu call other screens which are panels in the main frame.
When I call a new screen it looks like it hangs with the menu still open and no new panel, when I resize, it only becomes visible.
How do I repaint my frame so it shows the panel?
I have tried repaint() and update() but I'm not sure I'm using them right.
thanks
Ian
 
Rene Liebmann
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please try validateTree(). This method is better when the GUI structure has changed.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!