Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

repaint problem  RSS feed

 
alun groome
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is there anyway of forcing a panel to repaint straight away? I have 2 panels. When somethign happens on one pannel, I want the other pannel to display the changes.

thanks in advance
 
Alexander Rudloff
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Set panel A up as a listener to panel B.. When B changes, fire an event. A hears this event and runs the appropriate method. setVisible(false) on the panel being updated, make your changes, then setVisible(true) at the end..

Is that what you were looking for?
 
Alexandru Popescu
Ranch Hand
Posts: 995
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JPanel.updateUI().

--
./pope
[the_mindstorm]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!