I wasn't sure how to use a swing timer so, as you can see, I set it up so that I can call .getElapsedTime on anything that is able to 'start' such as the variable s in the program. It should work...
Type: Posts; User: The_Mexican
I wasn't sure how to use a swing timer so, as you can see, I set it up so that I can call .getElapsedTime on anything that is able to 'start' such as the variable s in the program. It should work...
Okay, here is the shortest possible program that I could make that still demonstrates my problem while being runnable:
import java.awt.Container;
import java.awt.event.ActionEvent;
import...
I did this and now it just goes into the while loop once the timer is started and is stuck there forever, you can't click any buttons and the timer isn't even updating anyway. :(
Ya, I realize that I am doing this, but my question is how do it get so that when you click the button the time in the text box updates consistently as the timer continues.
Hi, I'm having trouble getting my timer to be continuously updating. Once I click the button to start the timer it just shows 0. However, it shows the correct time after you finish.
public long...