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 | Method | Description |
---|---|---|
AWTEventListener[] |
Toolkit.getAWTEventListeners() |
Returns an array of all the
AWTEventListener s
registered on this toolkit. |
AWTEventListener[] |
Toolkit.getAWTEventListeners(long eventMask) |
Returns an array of all the
AWTEventListener s
registered on this toolkit which listen to all of the event
types specified in the eventMask argument. |
Modifier and Type | Method | Description |
---|---|---|
void |
Toolkit.addAWTEventListener(AWTEventListener listener,
long eventMask) |
Adds an AWTEventListener to receive all AWTEvents dispatched
system-wide that conform to the given
eventMask . |
void |
Toolkit.removeAWTEventListener(AWTEventListener listener) |
Removes an AWTEventListener from receiving dispatched AWTEvents.
|
Modifier and Type | Class | Description |
---|---|---|
class |
AWTEventListenerProxy |
A class which extends the
EventListenerProxy
specifically for adding an AWTEventListener
for a specific event mask. |
Constructor | Description |
---|---|
AWTEventListenerProxy(long eventMask,
AWTEventListener listener) |
Constructor which binds the
AWTEventListener
to a specific event mask. |
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps