import objectdraw.*; import java.awt.*; // This program creates a window that displays text when // you click the mouse button. public class TouchyWindow extends FrameWindowController { // when the mouse is pressed, show the text public void onMousePress(Location clickPoint) { new Text("I’m touched!", clickPoint, canvas); } public void onMouseRelease(Location point) { canvas.clear(); } }