Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

12
LINES

< > BotCompany Repo | #1018994 // useSynthLAF

JavaX fragment (include)

import javax.swing.plaf.synth.SynthLookAndFeel;

svoid useSynthLAF(File zipFile) {
  new SynthLookAndFeel lookAndFeel;

  pcall {
    URL url = new URL("jar:file:" + f2s(zipFile));
    print(url);
    lookAndFeel.load(url);
    UIManager.setLookAndFeel(lookAndFeel);
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018994
Snippet name: useSynthLAF
Eternal ID of this version: #1018994/3
Text MD5: 5e1cac20a1ab45c5a2c4534a28c6faac
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-19 21:02:16
Source code size: 285 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 416 / 426
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)