For my non gui classes, instead of using a collection to store my
listeners, I am using the EventListenerList class from the
javax.swing.event package.
Is that a good idea? I read that it's not a good idea to mix gui
classes with non gui's.
jan V - 23 Jul 2005 16:15 GMT
> For my non gui classes, instead of using a collection to store my
> listeners, I am using the EventListenerList class from the
> javax.swing.event package.
>
> Is that a good idea? I read that it's not a good idea to mix gui
> classes with non gui's.
EventListenerList isn't really Swing-specific, apart from its chosen
package. So it should be fine... unless I'm missing something. ;-)