public final class SwingXUtilities
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
static boolean |
isDescendingFrom(java.awt.Component focusOwner,
java.awt.Component parent) |
Returns whether the component is part of the parent's
container hierarchy.
|
void |
setComponentTreeEnabled(java.awt.Component c,
boolean enabled) |
Enables or disables of the components in the tree starting with
c . |
void |
setComponentTreeLocale(java.awt.Component c,
java.util.Locale locale) |
Sets the locale for an entire component hierarchy to the specified
locale.
|
static void |
updateAllComponentTreeUIs() |
Updates the componentTreeUI of all toplevel windows of the
current application.
|
static void |
updateAllComponentTreeUIs(java.awt.Window window) |
Updates the componentTreeUI of the given window and all its
owned windows, recursively.
|
public void setComponentTreeEnabled(java.awt.Component c, boolean enabled)
c
.c
- the starting componentenabled
- true
if the component is to enabled; false
otherwisepublic void setComponentTreeLocale(java.awt.Component c, java.util.Locale locale)
c
- the starting componentlocale
- the locale to setpublic static void updateAllComponentTreeUIs()
public static void updateAllComponentTreeUIs(java.awt.Window window)
window
- the window to updatepublic static boolean isDescendingFrom(java.awt.Component focusOwner, java.awt.Component parent)
focusOwner
- parent
-