The 1st class from the 1st class of Spring 2003 - Tuesday, January 14th, 2003
Click the applet canvas to see an important message. Scroll down to look at the Java code. RELOAD or REFRESH will clear the canvas.



// Written by Mark Jacobson - chapter one example and demo
// Tuesday, January 14th, 2003

import objectdraw.*;
import java.awt.*;

public class HelloWorld extends WindowController
{
   public void onMousePress(Location point)
   {
      double x = point.getX() + 25;
      double y = point.getY();

      new Text("Go Panthers", x, y, canvas);
   }

   public void onMouseRelease(Location point)
   {
      // canvas.clear();  // remove the comment symbols // to have
                          // the canvas clear()ed of the Go Panthers
   }                      // message when the mouse button is released...
}