Using Panels: BestBasicElements
public class BestBasicElements extends Applet {
// create controls as before
Panel buttonGroup = new Panel();
// add buttons to buttonGroup
Panel textGroup = new Panel();
// add textfield and label to textGroup
// add buttonGroup, canvas, textGroup to applet
// set everyone's background color