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


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

Re: Update GUI while wait

From "Ian Wilson" <ian.wilson@THRWHITE.remove-dii-this>
Subject Re: Update GUI while wait
Message-ID <1fCdne90Tryo_xfYRVnyigA@bt.com> (permalink)
Newsgroups comp.lang.java.gui
References <1166670632.835183.45040@73g2000cwn.googlegroups.com>
Date 2011-04-27 15:27 +0000
Organization TDS.net

Show all headers | 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