!752 //1003438 // Substance Lite !1003442 // Substance !1003441 // Trident (required by Substance) //1003443 //1003444 import org.pushingpixels.substance.api.*; import org.pushingpixels.substance.api.skin.*; p { UIManager.getDefaults().put("ClassLoader", main.class.getClassLoader()); swingAndWait(r { // Fix class lookup for Trident. // Not completely sure if this works all the time. // There might be multiple AWT threads? // If there's one, it works. Thread.currentThread().setContextClassLoader(main.class.getClassLoader()); UIManager.setLookAndFeel(new SubstanceCremeLookAndFeel()); //SubstanceLookAndFeel.setSkin(new CremeSkin()); updateLookAndFeelOnAllWindows(); }); awt { showFrame(centerAndSouth(centeredHtmlLabel("Hello world!"), new JButton("Yo!"))); } }