Uses 2016K of libraries. Click here for Pure Java version (1333L/9K/32K).
!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!"))); } }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003439 |
Snippet name: | (Old Spike) Test Substance Look-and-feel |
Eternal ID of this version: | #1003439/1 |
Text MD5: | 2a8923ab73f36ec04057e53588498a2f |
Transpilation MD5: | 6b6dcd34520fd96f3bd33ef0121baeee |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-07-03 17:33:08 |
Source code size: | 850 bytes / 29 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 618 / 709 |
Referenced in: | [show references] |