I wrote a Listener. Now I want to notify it, when a change occurs. Nothing special.
Now I’m asking myself:
Is there I standard class for Events that I can use, or do I have to write a new one by myself?
I know there ara java.awt.Event and AWTEvent. But I am not working directly at GUI level here. Furthermore we are using Swing at GUI level. So I’m not shure if it is a good idea to mix Swing and AWT.
Thx
Its ancient and simple, but you could use Observer/Obserable in java.util:
For more info, try http://www.javaworld.com/javaworld/jw-10-1996/jw-10-howto.html.