W3cubDocs

/OpenJDK 21

Package java.awt.desktop

package java.awt.desktop
Provides interfaces and classes for interaction with various desktop capabilities.
Since:
9
Class Description
AboutEvent
Event sent when the application is asked to open its about window.
AboutHandler
An implementer receives notification when the app is asked to show its about dialog.
AppEvent
AppEvents are sent to listeners and handlers installed on the Desktop instance of the current desktop context.
AppForegroundEvent
Event sent when the application has become the foreground app, and when it is no longer the foreground app.
AppForegroundListener
Implementors are notified when the app becomes the foreground app and when it is no longer the foreground app.
AppHiddenEvent
Event sent when the application has been hidden or shown.
AppHiddenListener
Implementors are notified when the app is hidden or shown by the user.
AppReopenedEvent
Event sent when the application is asked to re-open itself.
AppReopenedListener
Implementors receive notification when the app has been asked to open again.
FilesEvent
Auxiliary event containing a list of files.
OpenFilesEvent
Event sent when the app is asked to open a list of files.
OpenFilesHandler
An implementor is notified when the application is asked to open a list of files.
OpenURIEvent
Event sent when the app is asked to open a URI.
OpenURIHandler
An implementor is notified when the application is asked to open a URI.
PreferencesEvent
Event sent when the application is asked to open its preferences window.
PreferencesHandler
An implementor is notified when the app is asked to show its preferences UI.
PrintFilesEvent
Event sent when the app is asked to print a list of files.
PrintFilesHandler
An implementor can respond to requests to print documents that the app has been registered to handle.
QuitEvent
Event sent when the application is asked to quit.
QuitHandler
An implementor determines if requests to quit this application should proceed or cancel.
QuitResponse
Used to respond to a request to quit the application.
QuitStrategy
The strategy used to shut down the application, if Sudden Termination is not enabled.
ScreenSleepEvent
Event sent when the displays attached to the system enter and exit power save sleep.
ScreenSleepListener
Implementors receive notification when the displays attached to the system have entered power save sleep.
SystemEventListener
Common interface for all event listener sub-types.
SystemSleepEvent
Event sent when the system enters and exits power save sleep.
SystemSleepListener
Implementors receive notification as the system is entering sleep, and after the system wakes.
UserSessionEvent
Event sent when the user session has been changed.
UserSessionEvent.Reason
Kinds of available reasons of user session change.
UserSessionListener
Implementors receive notification when the user session changes.

© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/java/awt/desktop/package-summary.html