Programming in Java-Week6
Programming in Java-Week6
•There are two types of item events, which are identified by the
following integer constants:
DESELECTED
SELECTED
• There are three types of key events, which are identified by these
integer constants: KEY_PRESSED, KEY_RELEASED, and KEY_TYPED.
•The first two events are generated when any key is pressed or
released.
•The delegation event model has two parts: sources and listeners.
•listeners are created by implementing one or more of the
interfaces defined by the java.awt.event package.
•When an event occurs, the event source invokes the appropriate
method defined by the listener and provides an event object as its
argument.
NOTE: Please go through the reference book for details on the above
topic and feel free to mail your doubts or discuss anything. For
Introduction to AWT: Working with Windows, Graphics and Text, Please
use the following link:
https://www.javatpoint.com/java-awt
Assignment