public final class FormUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.Boolean |
cachedIsLafAqua
Holds the cached result of the Aqua l&f check.
|
private static javax.swing.LookAndFeel |
cachedLookAndFeel
Holds the LookAndFeel that has been used to computed cached values.
|
| Modifier | Constructor and Description |
|---|---|
private |
FormUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clearLookAndFeelBasedCaches()
Clears cached internal Forms state that is based
on the Look&Feel, for example dialog base units.
|
(package private) static void |
ensureValidCache() |
static boolean |
isLafAqua()
Lazily checks and answers whether the Aqua look&feel is active.
|
private static javax.swing.LookAndFeel cachedLookAndFeel
private static java.lang.Boolean cachedIsLafAqua
#ensureValidCache.public static boolean isLafAqua()
true if the current look&feel is Aquapublic static void clearLookAndFeelBasedCaches()
There's typically no need to call this method directly.
It'll be invoked automatically, if the L&F has been changed
via UIManager.setLookAndFeel(javax.swing.LookAndFeel) and cached data is requested.
It's been made public to allow cache invalidation for cases
where the L&F is changed temporarily by replacing the UIDefaults,
for example in a visual editor.
static void ensureValidCache()