Using EventListenerList for non gui

Discussion in 'Java' started by -, Jul 23, 2005.

  1. -

    - Guest

    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.
    -, Jul 23, 2005
    #1
    1. Advertising

  2. -

    jan V Guest

    "-" <> wrote in message news:...
    > 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. ;-)
    jan V, Jul 23, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. paul.foreman

    GUI - GUI value passing

    paul.foreman, Oct 22, 2004, in forum: Java
    Replies:
    5
    Views:
    731
    Michael Rauscher
    Oct 25, 2004
  2. -
    Replies:
    0
    Views:
    333
  3. -
    Replies:
    1
    Views:
    490
    Thomas Hawtin
    Aug 1, 2005
  4. ulysses
    Replies:
    4
    Views:
    748
    Werner Schiendl
    Oct 22, 2003
  5. Hal Fulton

    GUI and non-GUI data

    Hal Fulton, Aug 5, 2004, in forum: Ruby
    Replies:
    1
    Views:
    127
    Austin Ziegler
    Aug 5, 2004
Loading...

Share This Page