APIdia Launch Partner
Top Description Fields Constructors
java.awt.desktop

public final Class SystemSleepEvent

extends AppEvent
Class Inheritance
Imports
java.awt.Desktop, .GraphicsEnvironment, .HeadlessException, java.io.Serial

Event sent when the system enters and exits power save sleep.
Since
9
See Also
SystemSleepListener#systemAboutToSleep(SystemSleepEvent), SystemSleepListener#systemAwoke(SystemSleepEvent)

Field Summary

Modifier and TypeField and Description
private static final long
serialVersionUID

Hides java.awt.desktop.AppEvent.serialVersionUID.

Use serialVersionUID from JDK 9 for interoperability.

Constructor Summary

AccessConstructor and Description
public
SystemSleepEvent()

Constructs a SystemSleepEvent.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.awt.desktop.AppEvent.serialVersionUID.

Use serialVersionUID from JDK 9 for interoperability.

Annotations
@Serial

Constructor Detail

SystemSleepEventback to summary
public SystemSleepEvent()

Constructs a SystemSleepEvent.

Exceptions
HeadlessException:
if GraphicsEnvironment#isHeadless() returns true
UnsupportedOperationException:
if Desktop API is not supported on the current platform
See Also
Desktop#isDesktopSupported(), java.awt.GraphicsEnvironment#isHeadless