// CS 134 demo program which displays coordinates // of the mouse. import objectdraw.*; import java.awt.*; public class MouseMeter extends WindowController { private Text display; public void begin() { display = new Text( "Move the mouse", 150, 200, canvas ); } public void onMouseMove( Location point ) { display.setText( "(" + point.getX() + "," + point.getY() + ")" ); } }