Re: Using SwingWorker with user interaction
- From: Knute Johnson <nospam@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 24 Feb 2007 15:25:46 -0800
Efi Merdler wrote:
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
I think I would make three SwingWorkers and after each is finished bring up a dialog and ask the user for the input that you need. Then proceed.
--
Knute Johnson
email s/nospam/knute/
.
- References:
- Using SwingWorker with user interaction
- From: Efi Merdler
- Using SwingWorker with user interaction
- Prev by Date: Re: TrayIcon with PopupMenu or JPopupMenu ?
- Next by Date: Re: Displaying Images
- Previous by thread: Using SwingWorker with user interaction
- Next by thread: Re: Using SwingWorker with user interaction
- Index(es):
Relevant Pages
|