/** * Arithmetic.java * * @author Jeff Ondich * * This program draws a red rectangle with width 500, height 300, * and upper left corner (100,200). */ import java.awt.*; import javabook.*; class Test2 { static public void main( String[] args ) { DrawingBoard board = new DrawingBoard(); board.setVisible( true ); board.setColor( Color.red ); board.drawRectangle( 100, 200, 500, 300 ); } }