Practice pieces


GUI

Ok, so here's the simplest way of doing this:

GUI.java


 

Can you finish this off by:

1) Adding code to shut the program down when the window is shut.

2) Adding another button at the top of the Frame, such that the two buttons set each other's labels and reset their own.