• Post Reply Bookmark Topic Watch Topic
  • New Topic

Repaint in propertyChange

 
NoMo
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Consider these lines of code:



I would like to have my panel repainted every time a certain property in an another bean is changed (cfr. bound properties). The handling of the bounded properties work fine, only the repainting doesn't occur when the property is changed.

Can anybody give me a solution or an explanaition why the repainting doesn't occur on the property change?
 
Bernhard Jung
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
link:
The Swing Tutorial: Performing Custom Painting


you just have to overwrite paintComponent().
 
NoMo
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I solved the issue, it was just a big mistake by me. I was listening for property changes to the wrong instance.

However, thanks for your help!
[ January 08, 2005: Message edited by: NoMo ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!