Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to repaint all ancestors?  RSS feed

 
Pieter-Jan Malfait
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a JPanel inside another JPanel that is dynamically changing its layout, the second panel is contained in a JInternalFrame. When the components of the first panel change the frame doens't get updated automatically, it does though when i move it a little bit. Is there anyway to let the frame repaint itself automatically when one of his components is changing ?

thx a lot in advance!
 
Pieter-Jan Malfait
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
updateUI() seems to do the job
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!