<<< Event Types | Index | Event handling by adapter classes, cont. >>> |
To handle an event, the interface method such as actionPerformed() is called automatically when that event occurs.
An adapter class implements all methods in an interface, providing empty body for each method
To handle events, extend the adapter class:
write only methods you need
no need to write empty methods for other methods
<<< Event Types | Index | Event handling by adapter classes, cont. >>> |