Uses 2016K of libraries. Click here for Pure Java version (1333L/9K/32K).
1 | !752 |
2 | //1003438 // Substance Lite |
3 | !1003442 // Substance |
4 | !1003441 // Trident (required by Substance) |
5 | //1003443 |
6 | //1003444 |
7 | |
8 | import org.pushingpixels.substance.api.*; |
9 | import org.pushingpixels.substance.api.skin.*; |
10 | |
11 | p {
|
12 | UIManager.getDefaults().put("ClassLoader", main.class.getClassLoader());
|
13 | |
14 | swingAndWait(r {
|
15 | // Fix class lookup for Trident. |
16 | // Not completely sure if this works all the time. |
17 | // There might be multiple AWT threads? |
18 | // If there's one, it works. |
19 | Thread.currentThread().setContextClassLoader(main.class.getClassLoader()); |
20 | UIManager.setLookAndFeel(new SubstanceCremeLookAndFeel()); |
21 | //SubstanceLookAndFeel.setSkin(new CremeSkin()); |
22 | |
23 | updateLookAndFeelOnAllWindows(); |
24 | }); |
25 | |
26 | awt {
|
27 | showFrame(centerAndSouth(centeredHtmlLabel("Hello world!"), new JButton("Yo!")));
|
28 | } |
29 | } |
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: | 871 / 1018 |
| Referenced in: | [show references] |