///////////////////////////////////////////////////////////// // // File: hw1_applet.java // // Purpose: (proj1) Applet interface for hw1 (Hello World). // It uses the TravIO_Applet interface and the hw1 // (Hello World) InputHandler. // // Authors: // txe Travis Emmitt (emmitt@virginia.edu) // // Modifications: // 13-SEP-1998 txe Initial creation // 14-SEP-1998 txe Added comments. // ///////////////////////////////////////////////////////////// import hw1; public class hw1_applet extends BasicIOApplet { // Instantiate a TravIO_Applet interface, then an hw1 input // handler which uses that interface. StartHandler() will // create the input text field, and BasicIOApplet's action() // method will call HandleInput() whenever the input field // is changed. public void init () { StartHandler (new hw1 (new TravIO_Applet (this))); } } /////////////////////////////////////////////////////////////