The System class has a method called currentTimeMillis() which returns a long value that represents the current time (in milliseconds) from Jan 1, 1970 (it's a big value).
Complete and extend the Event Handling Demo program begun in class to include the following functionality:
Whenever a button event occurs, use the System.currentTimeMillis() method to obtain and save the current time. The difference (in ms) between any two button presses can be determined this way. Add another JLabel component to the canvas of the UI, and whenever a button press occurs, update the text of that label to display the time (in ms) since the user pressed any button:
Submit your .java files to the Week
5
Homework assignment in Blackboard.