Libraryless. Click here for Pure Java version (9226L/51K).
1 | static JProgressBar jProgressBarWithText() { |
2 | ret swing(-> { |
3 | new JProgressBar bar; |
4 | bar.setStringPainted(true); |
5 | ret bar; |
6 | }); |
7 | } |
8 | |
9 | static JProgressBar jProgressBarWithText(int maxValue) { |
10 | JProgressBar bar = jProgressBarWithText(); |
11 | swing { bar.setMaximum(maxValue); } |
12 | ret bar; |
13 | } |
14 | |
15 | static JProgressBar jProgressBarWithText(int maxValue, S text) { |
16 | var bar = jProgressBarWithText(maxValue); |
17 | swing { bar.setString(text); } |
18 | ret bar; |
19 | } |
20 | |
21 | static JProgressBar jProgressBarWithText(S text) { |
22 | var bar = jProgressBarWithText(); |
23 | swing { bar.setString(text); } |
24 | ret bar; |
25 | } |
Began life as a copy of #1006964
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020971 |
Snippet name: | jProgressBarWithText |
Eternal ID of this version: | #1020971/4 |
Text MD5: | 5e4d6bb2c7add79cdb7d2026a8096c8a |
Transpilation MD5: | 7a756fcf6a146135eb5e34d889503042 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-10-25 22:30:40 |
Source code size: | 608 bytes / 25 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 366 / 467 |
Version history: | 3 change(s) |
Referenced in: | [show references] |