Develop a class TextCounter that extends javafx.scene.text.Text and implements Runnable. Your layout should appear similar to the image below. Next, develop a class IntCounter that has an integer counter intialised to 0, and methods incrementCount, getCo

  

Task 2: Text Counter (USING JAVAFX)

Develop a class TextCounter that extends javafx.scene.text.Text and implements Runnable. Your layout should appear similar to the image below.  Next, develop a class IntCounter that has an integer counter intialised to 0, and methods incrementCount, getCount and setCount. 

For this application, create Start, Pause and Resume buttons. When Start is pressed, the counter starts from zero. When Pause is pressed, the counter pauses and displays the current count. When Resume is pressed, the counter continues from a paused state (or does nothing if the counter is already running). You should use Platform.runLater to implement the counter to ensure it updates correctly on screen. 

35907380

Tags: No tags