Using EventListenerList for non gui

?

-

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.
 
J

jan V

- said:
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. ;-)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top