1 | static JButton jbutton(S text, Runnable action) {
|
2 | ret newButton(text, action); |
3 | } |
4 | |
5 | static JButton jbutton(S text, O action) {
|
6 | ret newButton(text, action); |
7 | } |
8 | |
9 | // button without action |
10 | static JButton jbutton(S text) {
|
11 | ret newButton(text, null); |
12 | } |
13 | |
14 | /*static JButton jbutton(BufferedImage img, O action) {
|
15 | ret setButtonImage(img, jbutton("", action));
|
16 | }*/ |
17 | |
18 | static JButton jbutton(Action action) {
|
19 | ret swingNu(JButton.class, action); |
20 | } |
Began life as a copy of #1003297
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1003312 |
| Snippet name: | jbutton - extended synonym of newButton |
| Eternal ID of this version: | #1003312/8 |
| Text MD5: | 7ebe30646ad02b1f2e458135a9887a2f |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-01-29 03:59:41 |
| Source code size: | 458 bytes / 20 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1476 / 1597 |
| Version history: | 7 change(s) |
| Referenced in: | [show references] |