*
The moose likes Swing / AWT / SWT and the fly likes Swing : refreshing panels Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Swing : refreshing panels " Watch "Swing : refreshing panels " New topic
Author

Swing : refreshing panels

jay vas
Ranch Hand

Joined: Aug 30, 2005
Posts: 407
Hi Guys : I have a problem where
a Jpanel inside another JPanel
must change - but the changed components
are not shown until either the inner panel is clicked, or the window is resized.

This is a really weird bug --- i though that nested jpanels were essentially autonomous components, i.e. if they change, than there is no need to notify the parent programatically... am I wrong ?
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
revalidate()
jay vas
Ranch Hand

Joined: Aug 30, 2005
Posts: 407
Cool THANK YOU SO MUCH ! That worked !
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Swing : refreshing panels