Uses 3874K of libraries. Click here for Pure Java version (5410L/38K/137K).
1 | !7 |
2 | |
3 | p-substance { |
4 | //showFrame(new JProgressBar); // that is just gray |
5 | final JProgressBar bar = new JProgressBar(0, 100); |
6 | bar.setStringPainted(true); |
7 | awtEvery(bar, 500, r { |
8 | int n = random(100); |
9 | bar.setValue(n); |
10 | bar.setString("Leader " + n + " %"); |
11 | }); |
12 | frameInnerHeight(showFrame(bar), 60); |
13 | } |
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: | 524 / 636 |
Version history: | 10 change(s) |
Referenced in: | [show references] |