## Uses of Interface
java.awt.event.WindowFocusListener

- Packages that use WindowFocusListener
  Package | Description
  --- | ---
  java.awt | Contains all of the classes for creating user interfaces and for painting graphics and images.
  java.awt.event | Provides interfaces and classes for dealing with different types of events fired by AWT components.
  javax.swing | Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
  javax.swing.plaf.basic | Provides user interface objects built according to the Basic look and feel.

- - ### Uses of WindowFocusListener in java.awt

    Classes in java.awt that implement WindowFocusListener
    Modifier and Type | Class | Description
    --- | --- | ---
    `class` | `AWTEventMulticaster` `AWTEventMulticaster` implements efficient and thread-safe multi-cast event dispatching for the AWT events defined in the `java.awt.event` package.

    Methods in java.awt that return WindowFocusListener
    Modifier and Type | Method | Description
    --- | --- | ---
    `static WindowFocusListener` | AWTEventMulticaster.`add(WindowFocusListener a, WindowFocusListener b)` Adds window-focus-listener-a with window-focus-listener-b and returns the resulting multicast listener.
    `WindowFocusListener[]` | Window.`getWindowFocusListeners()` Returns an array of all the window focus listeners registered on this window.
    `static WindowFocusListener` | AWTEventMulticaster.`remove(WindowFocusListener l, WindowFocusListener oldl)` Removes the old window-focus-listener from window-focus-listener-l and returns the resulting multicast listener.

    Methods in java.awt with parameters of type WindowFocusListener
    Modifier and Type | Method | Description
    --- | --- | ---
    `static WindowFocusListener` | AWTEventMulticaster.`add(WindowFocusListener a, WindowFocusListener b)` Adds window-focus-listener-a with window-focus-listener-b and returns the resulting multicast listener.
    `void` | Window.`addWindowFocusListener(WindowFocusListener l)` Adds the specified window focus listener to receive window events from this window.
    `static WindowFocusListener` | AWTEventMulticaster.`remove(WindowFocusListener l, WindowFocusListener oldl)` Removes the old window-focus-listener from window-focus-listener-l and returns the resulting multicast listener.
    `void` | Window.`removeWindowFocusListener(WindowFocusListener l)` Removes the specified window focus listener so that it no longer receives window events from this window.

  - ### Uses of WindowFocusListener in java.awt.event

    Classes in java.awt.event that implement WindowFocusListener
    Modifier and Type | Class | Description
    --- | --- | ---
    `class` | `WindowAdapter` An abstract adapter class for receiving window events.

  - ### Uses of WindowFocusListener in javax.swing

    Classes in javax.swing that implement WindowFocusListener
    Modifier and Type | Class | Description
    --- | --- | ---
    `protected class` | `JMenu.WinListener` A listener class that watches for a popup window closing.

  - ### Uses of WindowFocusListener in javax.swing.plaf.basic

    Classes in javax.swing.plaf.basic that implement WindowFocusListener
    Modifier and Type | Class | Description
    --- | --- | ---
    `protected class` | `BasicToolBarUI.FrameListener`

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.