Interface AppForegroundListener

All Superinterfaces:
EventListener, SystemEventListener
public interface AppForegroundListener
extends SystemEventListener

Implementors are notified when the app becomes the foreground app and when it is no longer the foreground app. This notification is useful for hiding and showing transient UI like palette windows which should be hidden when the app is in the background.

Since:
9

Methods

Modifier and Type Method Description
void appMovedToBackground​(AppForegroundEvent e)

Called when the app becomes the background app and another app becomes the foreground app.

void appRaisedToForeground​(AppForegroundEvent e)

Called when the app becomes the foreground app.

Methods

appRaisedToForeground

void appRaisedToForeground(AppForegroundEvent e)

Called when the app becomes the foreground app.

Parameters:
e - event

appMovedToBackground

void appMovedToBackground(AppForegroundEvent e)

Called when the app becomes the background app and another app becomes the foreground app.

Parameters:
e - event

© 1993, 2020, 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/11/docs/api/java.desktop/java/awt/desktop/AppForegroundListener.html