Class FormUtils

java.lang.Object
com.jgoodies.forms.util.FormUtils

public final class FormUtils extends Object
A library-internal class that consists only of static utility methods. Note: This class is not part of the public Forms API. It's intended for library implementation purposes only. The class's API may change at any time.
Since:
1.2
Version:
$Revision: 1.14 $
  • Field Details

    • cachedLookAndFeel

      private static LookAndFeel cachedLookAndFeel
      Holds the LookAndFeel that has been used to computed cached values. If the current L&F differs from this cached value, the caches must be cleared.
    • cachedIsLafAqua

      private static Boolean cachedIsLafAqua
      Holds the cached result of the Aqua l&f check. Is invalidated if a look&feel change has been detected in #ensureValidCache.
  • Constructor Details

    • FormUtils

      private FormUtils()
  • Method Details

    • isLafAqua

      public static boolean isLafAqua()
      Lazily checks and answers whether the Aqua look&feel is active.
      Returns:
      true if the current look&feel is Aqua
    • clearLookAndFeelBasedCaches

      public static void clearLookAndFeelBasedCaches()
      Clears cached internal Forms state that is based on the Look&Feel, for example dialog base units.

      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.

      Since:
      1.2.1
    • ensureValidCache

      static void ensureValidCache()