Package | Description |
---|---|
java.awt |
Contains all of the classes for creating user
interfaces and for painting graphics and images.
|
java.awt.desktop |
Provides interfaces and classes for interaction with various
desktop capabilities.
|
Modifier and Type | Method and Description |
---|---|
void |
Desktop.addAppEventListener(SystemEventListener listener)
Adds sub-types of
SystemEventListener to listen for notifications
from the native system. |
void |
Desktop.removeAppEventListener(SystemEventListener listener)
Removes sub-types of
SystemEventListener to listen for notifications
from the native system. |
Modifier and Type | Interface and Description |
---|---|
interface |
AppForegroundListener
Implementors are notified when the app becomes the foreground app and when it
is no longer the foreground app.
|
interface |
AppHiddenListener
Implementors are notified when the app is hidden or shown by the user.
|
interface |
AppReopenedListener
Implementors receive notification when the app has been asked to open again.
|
interface |
ScreenSleepListener
Implementors receive notification when the displays attached to the system have entered power save sleep.
|
interface |
SystemSleepListener
Implementors receive notification as the system is entering sleep, and after
the system wakes.
|
interface |
UserSessionListener
Implementors receive notification when the user session changes.
|
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, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-08-31-194618.buildd.src