Event passing in (Swing) GUI Application



Hi,

I'm build a GUI app using Swing. I want to have it be as modular as
possible for all the usual reasons including reuse of common
components.

Some of my componets are GUI panels, some are non-GUI classes.

I'm a little confused as to the best way to communicate between
components though. When I use a Swing Jxxx widget I can register
EventListeners and FocusListeners etc. What sort of event mechanism
should I be using to talk between my higher level application
components?

I've gone with use PropertyChangeEvents for now should I be used custom
events though?

Or is this all down to my own design. I guess I'm asking for "What, if
any, is the usual event mechanism between GUI/non-GUI objects?"

Anyone got any good resources online?

.



Relevant Pages

  • Re: Event passing in (Swing) GUI Application
    ... > I'm build a GUI app using Swing. ... > possible for all the usual reasons including reuse of common ... When I use a Swing Jxxx widget I can register ... this comes down to your own design. ...
    (comp.lang.java.help)
  • Re: Password management
    ... The required password is one I never write down or store in ... plain text anywhere. ... If it is not a GUI app and you are on Java 1.6, ... But it would still be Swing in a non Swing app. ...
    (comp.lang.java.programmer)
  • Re: Password management
    ... or store in plain text anywhere. ... If it is not a GUI app and you are on Java 1.6, ... It would have been better than JDialog. ... But it would still be Swing in a non Swing app. ...
    (comp.lang.java.programmer)