import java.awt.*; /** Program 3.13 (draw 4 x 4 box with spider), from the textbook "Ada 95"
------------------------------------------------------------------
--| draw 4 x 4 box with spider
--| Author: Michael B. Feldman, The George Washington University
--| Last Modified: July 1995
------------------------------------------------------------------
  
Click on the "close button" (marked X) in the top right corner of the spider's window, to close the application. @see Spider @see Room @see AppFrame @author Java translation by Istvan Mohos, 1996 */ public class Draw_Box { public static void main(String[] args) { Room cellar = new Room(); // a Room named "cellar" new AppFrame("Draw_Box", cellar, 100, 100); // attach to a window Spider itzy = new Spider( // a Spider named "itzy" 50, 50, Room.WEST, Color.blue, Color.red); cellar.crawl(itzy, 40); // 40 pixels Westward itzy.turnRight(); cellar.crawl(itzy, 40); // 40 pixels Northward itzy.turnRight(); cellar.crawl(itzy, 40); // 40 pixels Eastward itzy.turnRight(); cellar.crawl(itzy, 40); // 40 pixels Southward itzy.turnRight(); cellar.showMe(itzy); // display } // end definition of main method } // end definition of class Draw_Box;