Doing without objectdraw
One of the things that the objectdraw library does for you is to
"pre-wire" your class extending WindowController so that it
implements MouseListener and MouseMotionListener. The program below
shows how one would have to write a program responding to mouse
events without using the objectdraw library. Notice that we also use
standard Java graphics, which are much less attractive to use. In
particular, objects can only be drawn in the paint method, which must
be called indirectly via a call to repaint(). See Appendix D of our
text for more details.
MouseApplet