| Consuming events | |
- Events may need to be ``blocked'' from reaching objects sometimes
- In password entry, keystrokes need to be caught by the application
but not reach the Text object for display
- A GUI builder might use mouse clicks to select objects such as
Button, but not activate the Button
- The delegation model allows this for key and mouse events
- Events are discarded by calling the method
Event.consume()
Slide 48 | ©Copyright 1997 | Jan Newmarch |