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


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

Re: Update GUI while wait

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.glorb.com!news-xxxfer.readnews.com!textspool1.readnews.com!news-out.readnews.com!transit3.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail
From "Ian Wilson" <ian.wilson@THRWHITE.remove-dii-this>
Subject Re: Update GUI while wait
Message-ID <1fCdne90Tryo_xfYRVnyigA@bt.com> (permalink)
X-Comment-To comp.lang.java.gui
Newsgroups comp.lang.java.gui
In-Reply-To <1166670632.835183.45040@73g2000cwn.googlegroups.com>
References <1166670632.835183.45040@73g2000cwn.googlegroups.com>
Content-Type text/plain; charset=IBM437
Content-Transfer-Encoding 8bit
X-Gateway time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92]
Lines 28
Date Wed, 27 Apr 2011 15:27:41 GMT
NNTP-Posting-Host 96.60.20.240
X-Complaints-To news@tds.net
X-Trace newsreading01.news.tds.net 1303918061 96.60.20.240 (Wed, 27 Apr 2011 10:27:41 CDT)
NNTP-Posting-Date Wed, 27 Apr 2011 10:27:41 CDT
Organization TDS.net
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.gui:465

Show key headers only | View raw


  To: comp.lang.java.gui
carlg@libertybasic.com wrote:
> Andrew Thompson wrote:
> 
>>carlg@libertybasic.com wrote:
>>
>>>How do I force my JLabel to display on the screen when I set it's
>>>contents before some business, ..
>>
>>..ensure 'the business' is not done on the EDT.
> 
> 
> What exactly do you mean by EDT?  

Andrew is referring to the Event Dispatching Thread. This is where all 
the GUI work goes on, listening for user actions and responding. If you 
want a responsive GUI then you must ensure that non-GUI work does not 
block the EDT.

> Are you saying I should kick off a
> thread with 'the business' in it?  Perhaps that'll work.

He is, it will. Don't forget to Thread.setPriority(Thread.NORMAL);

---
 * 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 | NextPrevious in thread | Find similar


Thread

Re: Update GUI while wait "carlg" <carlg@THRWHITE.remove-dii-this> - 2011-04-27 15:27 +0000
  Re: Update GUI while wait "Ian Wilson" <ian.wilson@THRWHITE.remove-dii-this> - 2011-04-27 15:27 +0000

csiph-web