Re: Update GUI while waiting on network result
- From: Ian Wilson <scobloke2@xxxxxxxxxxxxx>
- Date: Thu, 21 Dec 2006 10:30:09 +0000
carlg@xxxxxxxxxxxxxxxx wrote:
Andrew Thompson wrote:
carlg@xxxxxxxxxxxxxxxx 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);
.
- References:
- Update GUI while waiting on network result
- From: carlg
- Re: Update GUI while waiting on network result
- From: Andrew Thompson
- Re: Update GUI while waiting on network result
- From: carlg
- Update GUI while waiting on network result
- Prev by Date: Re: Writing a Movie Database?
- Next by Date: Re: Setting table row height according the renderer component
- Previous by thread: Re: Update GUI while waiting on network result
- Next by thread: How do i get string representation of a number
- Index(es):