/** * Sets a dialog font that will be used to compute the dialog base units. * * @param newFont the default dialog font to be set */ public void setDefaultDialogFont(Font newFont) { Font oldFont = defaultDialogFont; // Don't use the getter defaultDialogFont = newFont; clearCache(); changeSupport.firePropertyChange(PROPERTY_DEFAULT_DIALOG_FONT, oldFont, newFont); }
/** * Sets a dialog font that will be used to compute the dialog base units. * * @param newFont the default dialog font to be set */ public void setDefaultDialogFont(Font newFont) { Font oldFont = defaultDialogFont; // Don't use the getter defaultDialogFont = newFont; clearCache(); changeSupport.firePropertyChange(PROPERTY_DEFAULT_DIALOG_FONT, oldFont, newFont); }
/** * Clears cached internal Forms state that is based * on the Look&Feel, for example dialog base units.<p> * * There's typically no need to call this method directly. * It'll be invoked automatically, if the L&F has been changed * via {@link UIManager#setLookAndFeel} 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 */ public static void clearLookAndFeelBasedCaches() { cachedIsLafAqua = null; DefaultUnitConverter.getInstance().clearCache(); }
/** * Clears cached internal Forms state that is based * on the Look&Feel, for example dialog base units.<p> * * There's typically no need to call this method directly. * It'll be invoked automatically, if the L&F has been changed * via {@link UIManager#setLookAndFeel} 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 */ public static void clearLookAndFeelBasedCaches() { cachedIsLafAqua = null; DefaultUnitConverter.getInstance().clearCache(); }