import java.applet.*; import java.awt.*; public class Kaleidoscope extends Applet { private Panel drawPanel; private Checkbox rectangleCheckbox, squareCheckbox, ellipseCheckbox, circleCheckbox, triangleCheckbox; private Button startStopButton; public void init() { setLayout(new BorderLayout()); Panel shapePanel = new Panel(); rectangleCheckbox = new Checkbox("Rectangle"); shapePanel.add(rectangleCheckbox); squareCheckbox = new Checkbox("Square"); shapePanel.add(squareCheckbox); ellipseCheckbox = new Checkbox("Ellipse"); shapePanel.add(ellipseCheckbox); circleCheckbox = new Checkbox("Circle"); shapePanel.add(circleCheckbox); triangleCheckbox = new Checkbox("Triangle"); shapePanel.add(triangleCheckbox); startStopButton = new Button("Start"); shapePanel.add(startStopButton); add(shapePanel, BorderLayout.NORTH); drawPanel = new Panel(); add(drawPanel, BorderLayout.CENTER); } }