Inside a JFrame class, I start one Thread. That thread checks something and return a boolean as true or false. Inside the JFrame class I want to check that boolean, and do actions according to the results of the thread. Now my question is how can I make my JFrame to wait untill the Thread ends?
How to make a program to sleep until my Thread ends ? I dont wanna to use Thread.join(). Is it possible?
I am interacting with the user in another window.