List of usage examples for com.jgoodies.looks Options PLASTICXP_NAME
String PLASTICXP_NAME
To view the source code for com.jgoodies.looks Options PLASTICXP_NAME.
Click Source Link
From source file:phex.gui.common.LookAndFeelUtils.java
License:Open Source License
/** * @param lafClassName/*w w w. j av a 2 s. co m*/ */ public static ThemeInfo getCurrentTheme(String lafClassName) { if (Options.PLASTICXP_NAME.equals(lafClassName)) { PlasticTheme myCurrentTheme = PlasticLookAndFeel.getPlasticTheme(); if (myCurrentTheme == null) { return null; } Class<? extends PlasticTheme> clazz = myCurrentTheme.getClass(); String name = clazz.getName(); return new ThemeInfo(name, name); } return null; }
From source file:phex.gui.common.LookAndFeelUtils.java
License:Open Source License
public static void setCurrentTheme(String lafClassName, Object theme) { if (lafClassName.equals(Options.PLASTICXP_NAME)) { PlasticLookAndFeel.setPlasticTheme((PlasticTheme) theme); try {/* w w w. j a va 2 s . c o m*/ // after setting the theme we must reset the PlasticLAF UIManager.setLookAndFeel(UIManager.getLookAndFeel()); } catch (UnsupportedLookAndFeelException exp) {// this is not expected to happen since we reset a existing LAF logger.error(exp.toString(), exp); } } GUIUtils.updateComponentsUI(); }
From source file:phex.gui.common.LookAndFeelUtils.java
License:Open Source License
/** * Returns the default LAF class name of the system. *//*w w w . jav a 2s .c o m*/ private static String getDefaultLAFClassName() { if (SystemUtils.IS_OS_MAC_OSX) { // set the look and feel to System return UIManager.getSystemLookAndFeelClassName(); } else { // set the look and feel to Metal //lafClass = UIManager.getCrossPlatformLookAndFeelClassName(); return Options.PLASTICXP_NAME; } }