Rob Camick wrote:You need to use a Timer to update the label at a specified interval. Read the Swing tutorial on How to Use Timers.
In your Start button you would start the Timer and in your Stop button you would stop the Timer and update the label with the final difference. When the Timer fires you update the label with the difference in time.
John Corkrend wrote:Ok that fixed it, I see how it created the window when the program started. Now another thing I want to ask is why does it close both windows when I only want to close the text one? Is there a way where I can close one window and still leave the other one open?