Re: waiting message

From: Charles Fineman (cfineman-no&spam_at_yahoo.com)
Date: 12/18/03

  • Next message: Todd Prickett: "Building a menubar question"
    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?


  • Next message: Todd Prickett: "Building a menubar question"

    Relevant Pages

    • Re: waiting message
      ... > I'm calling remote methods on the server, where database queries are ...
      (comp.lang.java.gui)
    • waiting message
      ... I'm calling remote methods on the server, where database queries are ... sometimes it takes a while to get the results back to the client side. ...
      (comp.lang.java.developer)
    • waiting message
      ... I'm calling remote methods on the server, where database queries are ... sometimes it takes a while to get the results back to the client side. ...
      (comp.lang.java.programmer)
    • Re: waiting message
      ... > I'm calling remote methods on the server, where database queries are ...
      (comp.lang.java.programmer)
    • waiting message
      ... I'm calling remote methods on the server, where database queries are ... sometimes it takes a while to get the results back to the client side. ...
      (comp.lang.java.gui)