Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

"Waiting" Dialog.  RSS feed

 
Veri Strora
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All!
I have a problem: I have a Swing Application that comunicate with a server with xml-rpc, and the response sometimes is more than 5 sec.
I need to display a "Please wait" - modal dialog.I do this in a new thread, but...this block the work anyway. And...how can I 'hide' dhe dialog when I have the response from server?
Thanks in advance!
 
Lionel Badiou
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Veri,

I suggest you to:

- Open a "please wait dialog"
- Create a thread that connect to your server and close the dialog above once connected (myDialog.dispose()

You may find benefits to read this :
How to use threads

Regards,
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!