// ButtonTest.java // A program from Cay Horstmann's Computing Concepts with Java 2 Essentials. // Adapted by Scot Drysdale. Further changes by THC. // Puts up a window with four buttons and a graphical rectangle. // Clicking on each button moves the rectangle. public class ButtonTest { public static void main(String[] args) { ButtonFrame frame = new ButtonFrame(); frame.setTitle("ButtonTest"); final int DEFAULT_FRAME_WIDTH = 400; final int DEFAULT_FRAME_HEIGHT = 300; frame.setSize(DEFAULT_FRAME_WIDTH, DEFAULT_FRAME_HEIGHT); frame.setVisible(true); } }