0

I have a component which displays property of some (external) bean. I.e. bean is backing the component. Now I want to update picture periodically. Of course I can write my own method to update. But may be there is one in ideology of swing?

Which pattern is usually used in swing when data model was updated and now it is required to reflect new data in visual form?

Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
  • 2
    everything if is there PropertyChangeSupport, then you can to add PropertychangeListener, another way is ChangeListener or every JComponents has own listener that notified about changes in Model – mKorbel Oct 13 '12 at 08:48
  • Three common approaches are mentioned [here](http://stackoverflow.com/a/3072979/230513) in the context of the observer pattern. – trashgod Oct 13 '12 at 09:40

0 Answers0