Java Reference
In-Depth Information
In the delegation event model, a
source
generates an event and sends it to one or
more
listeners
. A listener simply waits until it receives an event. Once received, the
listener processes the event and then returns.
Yes; a listener must register with a source to receive events.
the currently selected color between two points. It is part of the
Graphics
class.
Using
drawLine( )
, write a program that tracks mouse movement. If the button is
pressed, have the program draw a continuous line until the mouse button is released.