Package | Description |
---|---|
java.awt |
Contains all of the classes for creating user
interfaces and for painting graphics and images.
|
java.awt.event |
Provides interfaces and classes for dealing with different
types of events fired by AWT components.
|
Modifier and Type | Class and Description |
---|---|
class |
AWTEventMulticaster
AWTEventMulticaster implements efficient and thread-safe multi-cast
event dispatching for the AWT events defined in the java.awt.event
package. |
Modifier and Type | Method and Description |
---|---|
static KeyListener |
AWTEventMulticaster.add(KeyListener a,
KeyListener b)
Adds key-listener-a with key-listener-b and
returns the resulting multicast listener.
|
KeyListener[] |
Component.getKeyListeners()
Returns an array of all the key listeners
registered on this component.
|
static KeyListener |
AWTEventMulticaster.remove(KeyListener l,
KeyListener oldl)
Removes the old key-listener from key-listener-l and
returns the resulting multicast listener.
|
Modifier and Type | Method and Description |
---|---|
static KeyListener |
AWTEventMulticaster.add(KeyListener a,
KeyListener b)
Adds key-listener-a with key-listener-b and
returns the resulting multicast listener.
|
void |
Component.addKeyListener(KeyListener l)
Adds the specified key listener to receive key events from
this component.
|
static KeyListener |
AWTEventMulticaster.remove(KeyListener l,
KeyListener oldl)
Removes the old key-listener from key-listener-l and
returns the resulting multicast listener.
|
void |
Component.removeKeyListener(KeyListener l)
Removes the specified key listener so that it no longer
receives key events from this component.
|
Modifier and Type | Class and Description |
---|---|
class |
KeyAdapter
An abstract adapter class for receiving keyboard events.
|