Download Jar. Libraryless. Click here for Pure Java version (3155L/22K).
!7 p { bool ok = false; for (final UIManager.LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) { S name = info.getName(); print("L&F found: " + name); if (eq("Nimbus", name)) { swing { UIManager.setLookAndFeel(info.getClassName()); print("Nimbus activated!"); JFrame.setDefaultLookAndFeelDecorated(true); // doesn't do anything though print("Updating windows"); updateLookAndFeelOnAllWindows_noRenew(); print("Renewing console frame"); renewConsoleFrame(); showForm("a", jtextfield()); } ok = true; } } if (!ok) print("Nimbus not found."); }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, imzmzdywqqli, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1009811 |
Snippet name: | Test "Nimbus" Look&Feel [OK] |
Eternal ID of this version: | #1009811/7 |
Text MD5: | 613c41e609e4fefa8b549ba2590da7d3 |
Transpilation MD5: | 341b8900df7fcbf6a4e3c57ad64bbfe0 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-08-18 04:01:52 |
Source code size: | 686 bytes / 24 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 625 / 1429 |
Version history: | 6 change(s) |
Referenced in: | #1009949 - nimbus - enable nimbus look&feel |