import objectdraw.*; /** * This is a simple demonstration of some event handling in Java. * When the user presses down the mouse button a message appears. * When the user releases the mouse button, the message is erased. * * @author Barbara Lerner */ public class SpringBreak extends WindowController { public void begin () { } /** * When the user depresses the mouse button, display a message that * spring break is coming. * * @param point where the user clicks the mouse */ public void onMousePress (Location point) { /* Here is a multi-line * comment. */ //new Text ("Fall break is coming!", 440, 100, canvas); new Text ("Fall break is coming!", point, canvas); // create text } }