EventListener
public interface TopLevelWindowListener extends EventListener
TopLevelWindowListener
interface is used by the EventQueueMonitor
class to notify an interested party when a top level window is created or destroyed in the Java Virtual Machine. Classes wishing to express an interest in top level window events should implement this interface and register themselves with the EventQueueMonitor
by calling the EventQueueMonitor.addTopLevelWindowListener
class method.Modifier and Type | Method | Description |
---|---|---|
void |
topLevelWindowCreated |
Invoked when a new top level window has been created. |
void |
topLevelWindowDestroyed |
Invoked when a top level window has been destroyed. |
void topLevelWindowCreated(Window w)
w
- the Window that was createdvoid topLevelWindowDestroyed(Window w)
w
- the Window that was destroyed
© 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/jdk.accessibility/com/sun/java/accessibility/util/TopLevelWindowListener.html