lib 1005652 // Substance lib 1003441 // Trident (required by Substance) import org.pushingpixels.substance.api.*; import org.pushingpixels.substance.api.skin.*; static void enableSubstance_impl(fS skinName) { if (headless()) ret; swing { if (!substanceLookAndFeelEnabled()) enableSubstance_impl_2(skinName); } } static void enableSubstance_impl_2(S skinName) ctex { bool wasEnabled = substanceLookAndFeelEnabled(); ClassLoader cl = main.class.getClassLoader(); UIManager.getDefaults().put("ClassLoader", cl); Thread.currentThread().setContextClassLoader(cl); S skinClassName = "org.pushingpixels.substance.api.skin." + addSuffix(skinName, "Skin"); SubstanceSkin skin = (SubstanceSkin) nuObject(cl.loadClass(skinClassName)); SubstanceLookAndFeel.setSkin(skin); JFrame.setDefaultLookAndFeelDecorated(true); updateLookAndFeelOnAllWindows_noRenew(); if (!wasEnabled) renewConsoleFrame(); if (substanceLookAndFeelEnabled()) { //print("Substance L&F enabled."); } else print("Could not enable Substance L&F?"); }