/** * Retrieves the current label bundle. * * @return The current label bundle. * @see #resetLabelBundle() */ public static synchronized ResourceBundle getLabelBundle() { if (SubstanceLookAndFeel.LABEL_BUNDLE == null) { // fix for RFE 157 (allowing custom class loader for // resource bundles which can remove server calls // in applets) if (SubstanceLookAndFeel.labelBundleClassLoader == null) { SubstanceLookAndFeel.LABEL_BUNDLE = ResourceBundle .getBundle( "org.pushingpixels.substance.internal.resources.Labels", Locale.getDefault()); } else { SubstanceLookAndFeel.LABEL_BUNDLE = ResourceBundle .getBundle( "org.pushingpixels.substance.internal.resources.Labels", Locale.getDefault(), SubstanceLookAndFeel.labelBundleClassLoader); } for (LocaleChangeListener lcl : SubstanceLookAndFeel.localeChangeListeners) lcl.localeChanged(); } return SubstanceLookAndFeel.LABEL_BUNDLE; }
/** * Retrieves the current label bundle. * * @return The current label bundle. * @see #resetLabelBundle() */ public static synchronized ResourceBundle getLabelBundle() { if (SubstanceLookAndFeel.LABEL_BUNDLE == null) { // fix for RFE 157 (allowing custom class loader for // resource bundles which can remove server calls // in applets) if (SubstanceLookAndFeel.labelBundleClassLoader == null) { SubstanceLookAndFeel.LABEL_BUNDLE = ResourceBundle .getBundle( "org.pushingpixels.substance.internal.resources.Labels", Locale.getDefault()); } else { SubstanceLookAndFeel.LABEL_BUNDLE = ResourceBundle .getBundle( "org.pushingpixels.substance.internal.resources.Labels", Locale.getDefault(), SubstanceLookAndFeel.labelBundleClassLoader); } for (LocaleChangeListener lcl : SubstanceLookAndFeel.localeChangeListeners) lcl.localeChanged(); } return SubstanceLookAndFeel.LABEL_BUNDLE; }