com.explodingpixels.widgets
Class WindowUtils
java.lang.Object
com.explodingpixels.widgets.WindowUtils
public class WindowUtils
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FRAME_ACTIVE_PROPERTY
public static final String FRAME_ACTIVE_PROPERTY
- See Also:
- Constant Field Values
WindowUtils
public WindowUtils()
createAndInstallRepaintWindowFocusListener
public static WindowFocusListener createAndInstallRepaintWindowFocusListener(Window window)
isParentWindowFocused
public static boolean isParentWindowFocused(Component component)
installWindowFocusListener
public static void installWindowFocusListener(WindowFocusListener focusListener,
JComponent component)
installJComponentRepainterOnWindowFocusChanged
public static void installJComponentRepainterOnWindowFocusChanged(JComponent component)
- Installs a listener on the given
JComponent's parent Window that repaints
the given component when the parent window's focused state changes. If the given component
does not have a parent at the time this method is called, then an ancestor listener will be
installed that installs a window listener when the components parent changes.
- Parameters:
component - the JComponent to add the repaint focus listener to.