CSC 112
Ileana Streinu

Best and Better Looking Basic GUI

Click on the buttons to alternate colors, and write in the textbox the name of the desired shape.

The Java code is a slight improvement on the previous example, still organized in two classes.

Notice the better organization (on the applet) of the GUI elements. This is achieved by the use of a Layout, that places the GUi elements (buttons, textfild, canvas) in a structured way.