Re: waiting message
From: Charles Fineman (cfineman-no&spam_at_yahoo.com)
Date: 12/18/03
- Previous message: Tim Tyler: "Re: Target VM Microsoft? or Java Lint to check for MS VM compatibility?"
- In reply to: kastis: "waiting message"
- Next in thread: Raymond DeCampo: "Re: waiting message"
- Reply: Raymond DeCampo: "Re: waiting message"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 18 Dec 2003 15:03:54 -0500
You would have to launch the remote request in a different thread (which you should be doing anyway if you are currently launching the request within an Action or something like that... you are basically blocking the whole event thread by doing that). I'm no guru w.r.t. Swing thread saftey issues but I would imagine that you would still be able to call setters on the dialog from the other thread and get it to redisplay properly.
kastis wrote:
> I'm calling remote methods on the server, where database queries are
> executed.
> sometimes it takes a while to get the results back to the client side.
> I'm trying to display JDialog with message to wait, but while dialog
> box appears immediatelly, the content inside it only appears when
> remote method returns data, and that makes dialog box rather
> irelevant.
>
> what can I do to get message window displayed while waiting for data?
- Previous message: Tim Tyler: "Re: Target VM Microsoft? or Java Lint to check for MS VM compatibility?"
- In reply to: kastis: "waiting message"
- Next in thread: Raymond DeCampo: "Re: waiting message"
- Reply: Raymond DeCampo: "Re: waiting message"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|