The blank area in the window
that catches the mouse events
is created by a subtype of
LeafVBT is so primitive that it does not even redraw itself.
So we override the
repaint method with one that does the repainting.
In this case there is nothing important to do,
just fill in with the background color.
The mouse events are caught by supplying our own
which does much more than the default
(which does nothing).
mouse method, called
MouseEvent is in
It receives a data structure called
The method extracts the various pieces of the structure and
displays them in the appropriate text fields of the main application.
Two views of the application while it is running are show in: