| 1 | static JButton jButton(S text, O action) {
 | 
| 2 | ret newButton(text, action); | 
| 3 | } | 
| 4 | |
| 5 | // button without action | 
| 6 | static JButton jButton(S text) {
 | 
| 7 | ret newButton(text, null); | 
| 8 | } | 
| 9 | |
| 10 | static JButton jButton(BufferedImage img, O action) {
 | 
| 11 |   ret setButtonImage(img, jbutton("", action));
 | 
| 12 | } | 
| 13 | |
| 14 | static JButton jButton(Action action) {
 | 
| 15 | ret swingNu(JButton.class, action); | 
| 16 | } | 
Began life as a copy of #1003312
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: | #1014640 | 
| Snippet name: | jButton - extended synonym of newButton | 
| Eternal ID of this version: | #1014640/1 | 
| Text MD5: | a05294d2577555a401e3342da7c0c7ec | 
| Author: | stefan | 
| Category: | javax / gui | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2018-04-27 15:18:12 | 
| Source code size: | 366 bytes / 16 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 756 / 783 | 
| Referenced in: | [show references] |