Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #1028
| From | "Knute Johnson" <knute.johnson@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: Using SwingWorker wit |
| Message-ID | <%P3Eh.62606$5F3.34857@newsfe14.lga> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <1172346609.769136.247720@k78g2000cwa.googlegroups.com> |
| Date | 2011-04-27 15:30 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui 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/ --- * 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 | Next — Previous in thread | Next in thread | Find similar
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