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

13
LINES

< > BotCompany Repo | #1006964 // Test JProgressBar - it's automatically animated, thanks Substance!

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Uses 3874K of libraries. Click here for Pure Java version (5410L/38K/137K).

!7

p-substance {
  //showFrame(new JProgressBar); // that is just gray
  final JProgressBar bar = new JProgressBar(0, 100);
  bar.setStringPainted(true);
  awtEvery(bar, 500, r {
    int n = random(100);
    bar.setValue(n);
    bar.setString("Leader " + n + " %");
  });
  frameInnerHeight(showFrame(bar), 60);
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1006964
Snippet name: Test JProgressBar - it's automatically animated, thanks Substance!
Eternal ID of this version: #1006964/11
Text MD5: d1dcb1674115e451e82f2355066b016b
Transpilation MD5: f17eb1b2a665f09efb4eaf906b80b15e
Author: stefan
Category: javax / gui
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-02-21 13:16:43
Source code size: 326 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 430 / 520
Version history: 10 change(s)
Referenced in: [show references]