Re: Event passing in (Swing) GUI Application
- From: "Monique Y. Mudama" <spam@xxxxxxxxxxxxxxxx>
- Date: Tue, 31 Jan 2006 09:49:55 -0700
On 2006-01-31, Wardie penned:
> 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?"
I think that yes, this comes down to your own design.
You can even create your own Event/Listener scheme, with or without
inheriting from any particular API Event.
> Anyone got any good resources online?
>
--
monique
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
.
- References:
- Event passing in (Swing) GUI Application
- From: Wardie
- Event passing in (Swing) GUI Application
- Prev by Date: Re: Limit Single Instance
- Next by Date: Re: Limit Single Instance
- Previous by thread: Event passing in (Swing) GUI Application
- Next by thread: Limit Single Instance
- Index(es):
Relevant Pages
|