Suppose we want to write a stopwatch application that has a GUI. As a start, we will write stubs that create buttons for the application. These buttons will simply indicate which one was pressed, but will not cause any other actions. Create a GUI application that has a single window, three buttons—Start, Stop, and Reset—and one label. When Start is pressed, change the foreground color of the label to green and its text to Start was pressed. When Stop is pressed, change the foreground color of the label to red and its text to Stop was pressed. When Reset is pressed, change the foreground color of the label to orange and its text to Reset was pressed.

What will be an ideal response?

See the code in Exercise7.java, StopWatchWindow.java.

Computer Science & Information Technology

You might also like to view...

All of the following are database system in which you can be certified EXCEPT ____.

A. Illustrator B. Sybase C. Access D. DB2

Computer Science & Information Technology

List the two types of team leaders.

What will be an ideal response?

Computer Science & Information Technology