Using the Adapter Class
Event handler can now inherit from this class
just implement desired method (mouseClicked):
class MyMouseHandler extends MouseAdapter {
public void mouseClicked(MouseEvent e) {
// handle mouse click
}
}
Previous slide
Next slide
Back to first slide
View graphic version