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

public final Class ScreenSleepEvent

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

Event sent when the displays attached to the system enter and exit power save sleep.
Since
9
See Also
ScreenSleepListener#screenAboutToSleep(ScreenSleepEvent), ScreenSleepListener#screenAwoke(ScreenSleepEvent)

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
ScreenSleepEvent()

Constructs a ScreenSleepEvent.

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

ScreenSleepEventback to summary
public ScreenSleepEvent()

Constructs a ScreenSleepEvent.

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