Hi all,
I am having a hard time coming up with the best way to display output in a
thread. Right now my program works but the output (a clock) is displayed to the comand window. I would like to have it displayed to a new window. When I tried this, instead of the thread updating the time it created a new window, so I had windows poping up all over. I also had trouble figuring out how to pass a booleen (when the user presses a button on the window that displays the time) to stop the while loop. Here is what I have so far that works.
What I would like to know is what is the best way to percede:
1) a seperate class for the display
2) use one class and implement runnable instead of extending thread
should I take the creation of the clock
string out of the while loop?