swing: event listener support class

Posted by Jason S on Stack Overflow See other posts from Stack Overflow or by Jason S
Published on 2010-04-28T18:31:21Z Indexed on 2010/04/28 18:47 UTC
Read the original article Hit count: 237

Filed under:
|
|

Is there any preexisting class that helps support add/remove EventListener operations? (kind of like PropertyChangeSupport)

I'm trying to partition my code into a model and view in Java. I have some data that arrives erratically, and would like the model to support some kind of EventListener so that a view can subscribe to changes in the model. The data is numerous + complicated enough that I don't want to have to do the whole fine-grained Javabeans property change support; rather I would just like to allow notification that the model has changed in a coarse way.

how can I best do this?

© Stack Overflow or respective owner

Related posts about java

Related posts about swing