java - How to make a program to sleep until my Thread ends? -


inside jframe class, start 1 thread. thread checks , return boolean true or false. inside jframe class want check boolean, , actions according results of thread. question how can make jframe wait untill thread ends?

how make program sleep until thread ends ? dont wanna use thread.join(). possible?


i interacting user in window.

make second window modal dialog such either joptionpane or modal jdialog. either 1 freeze calling window until dialog window no longer visible. please check out this question more on this, these questions lot more on this.


Comments