Create a Java application for MathLabs using NetBeans called MathsLabsCountDownTimer. The application must consist of a graphic user interface like the one displayed in Figure 10 below. Note, the GUI could either be a JavaFX or Java Swing GUI. It must consist of two buttons, labels and an uneditable textfield to display the countdown timer. The application must make use of a thread to do the counting. The time should count at intervals of one (1) second starting at 60 seconds. When the Start Timer button is clicked, the timer should start doing the count down. When the Reset Timer button is clicked, the timer should reset back to 60 seconds. When the timer hits zero, a message dialog box should be displayed to inform the user that they have run out of time. Figures 11 and 12 below shows when the application is running after the Start Timer button has been clicked, and the time when the timer has run out of time respectively.
Create a Java application for MathLabs using NetBeans called MathsLabsCountDownTimer. The application must consist of a graphic user interface like the one displayed in Figure 10 below.
Note, the GUI could either be a JavaFX or Java Swing GUI.
It must consist of two buttons, labels and an uneditable textfield to display the countdown timer. The application must make use of a thread to do the counting. The time should count at intervals of one (1) second starting at 60 seconds.
When the Start Timer button is clicked, the timer should start doing the count down. When the Reset Timer button is clicked, the timer should reset back to 60 seconds.
When the timer hits zero, a message dialog box should be displayed to inform the user that they have run out of time. Figures 11 and 12 below shows when the application is running after the Start Timer button has been clicked, and the time when the timer has run out of time respectively.
Note: develop Java FX/ java swing that must use threads and not only simply implements a countdown timer.
Ensure that your application handles basic exceptions.
Step by step
Solved in 2 steps with 2 images