Up:
2.2.2
Delagation Event Model
Right:
2.2.2.2
Adding a Custom Event
The notable changes are:
Rotator.java
implementing MouseListener, MouseMotionListener, KeyListener
as well as enabling the listener with addMouseListener, addMouseMotionListener, addKeyListener
SimpleApplet.java
Adding inner classes to handle the button, choose and checkbox events
Related code that did not have to be changed was
Omatrix.java
,
Board.java
, and
Vertex.java
.
home
Contents