How did you even find this place?
0 Members and 1 Guest are viewing this topic.
try { // Initialize the JGoodies Look and Feels String[] lafs = { "com.jgoodies.looks.windows.WindowsLookAndFeel", "com.jgoodies.looks.plastic.PlasticLookAndFeel", "com.jgoodies.looks.plastic.Plastic3DLookAndFeel", "com.jgoodies.looks.plastic.PlasticXPLookAndFeel", }; Class<?> PlasticLookAndFeel = null; for(String c : lafs) { PlasticLookAndFeel = JARLoader.forName(c); LookAndFeel laf = (LookAndFeel)PlasticLookAndFeel.newInstance(); UIManager.installLookAndFeel(laf.getName(), PlasticLookAndFeel.getName()); } // getInstalledThemes() Method getInstalledThemes = PlasticLookAndFeel.getMethod("getInstalledThemes"); List<?> themes = (List<?>)getInstalledThemes.invoke(null); LinkedList<String> themes2 = new LinkedList<String>(); for(Object theme : themes) themes2.add(theme.getClass().getSimpleName()); lookAndFeelThemes = themes2.toArray(new String[themes2.size()]); // setPlasticTheme(PlasticTheme) Class<?> PlasticTheme = JARLoader.forName("com.jgoodies.looks.plastic.PlasticTheme"); setPlasticTheme = PlasticLookAndFeel.getMethod("setPlasticTheme", PlasticTheme); } catch(Exception e) { Out.exception(e); }