Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #1026

Using SwingWorker with us

From "Efi Merdler" <efi.merdler@THRWHITE.remove-dii-this>
Subject Using SwingWorker with us
Message-ID <1172346609.769136.247720@k78g2000cwa.googlegroups.com> (permalink)
Newsgroups comp.lang.java.gui
Date 2011-04-27 15:30 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
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

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextNext in thread | Find similar


Thread

Using SwingWorker with us "Efi Merdler" <efi.merdler@THRWHITE.remove-dii-this> - 2011-04-27 15:30 +0000
  Re: Using SwingWorker wit "Knute Johnson" <knute.johnson@THRWHITE.remove-dii-this> - 2011-04-27 15:30 +0000
  Re: Using SwingWorker wit "Dan Andrews" <dan.andrews@THRWHITE.remove-dii-this> - 2011-04-27 15:30 +0000

csiph-web