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

Pause program until pop-up window is displayed?  RSS feed

 
Matt Wilcko
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Is there any way to pause a program until a certain process is complete? I have a pop-up window that is a seperate thread. I first call it and set the thread priority to MAX. After that, I call a time consuming process. Problem is that the contents of the pop-up window do not get displayed until the time consuming process is complete. Can I somehow make the program wait until the pop-up window is fully displayed before calling the time consuming process? I've tried setting the time consuming process to MIN priority but no luck with that either.
Thanks,
Matt
 
Don Kiddick
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at Thread.join();
D.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!