Using SwingWorker with user interaction
- From: "Efi Merdler" <fooshm@xxxxxxxxx>
- Date: 24 Feb 2007 11:50:09 -0800
Hello,
I have a main GUI which uses a SwingWorker class in order to dispatch
a lengthy operation, this lengthy operation is required to update the
user interface, something that can be done quite easily using publish
method,in addition I need to retrieve keyboard clicks which also
causes the user interface to get updated.
In other words, I have a GUI and an engine that runs in the background
this engine needs to retrieve user interaction with the keyboard and
according to a keyboard click change the graphical interface.
My question is, should I divide the above operations (GUI and engine)
into two different threads, if so how do I make them share data
(keyboard --> engine engine --> gui) or maybe everything should run in
the same thread ?
What do you think ?
Thanks,
Efi
.
- Follow-Ups:
- Re: Using SwingWorker with user interaction
- From: Dan Andrews
- Re: Using SwingWorker with user interaction
- From: Knute Johnson
- Re: Using SwingWorker with user interaction
- Prev by Date: Re: Ok, so where's the FM?
- Next by Date: Re: TrayIcon with PopupMenu or JPopupMenu ?
- Previous by thread: frames from an applet
- Next by thread: Re: Using SwingWorker with user interaction
- Index(es):
Relevant Pages
|