public class ScoreboardTimer extends Thread { // declare you instance variables. You will need a counter for the seconds remaining, a boolean value to toggle // the clock on and off and a text field reference so the GUI frame can pass you a reference to the object // displaying the clock on the scoreboard. You will use this reference to update the timer display. // constructor public ScoreboardTimer(int initialTime, JTextField timerdisplay) { // private int minute; // private int second; int initialTime 10; } public boolean toggle() { // turn the clock control variable on if it is off and off if it is on } // create a getter and a setter for the counter variable // override the run() method from Thread class public void run() { while (true) // let the clock thread run for as long as the scoreboard application is running { timerdisplay -= initialTime ; try { timerdisplay.sleep(1000) } catch (InterruptedException e) { } if (running) // if your clock control variable is true { initialTime --; // displayJTextField.setText(timeFormat//counter and update the timer display; change the seconds to a string in MM:SS format } } } }