• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Swing : refreshing panels

 
jay vas
Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
revalidate()
 
jay vas
Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cool THANK YOU SO MUCH ! That worked !
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic