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

17
LINES

< > BotCompany Repo | #1014643 // jMarginButton

JavaX fragment (include)

1  
static int jMarginButton_margin = 10;
2  
3  
static JButton jMarginButton(S text, O action) {
4  
  ret setMargin(jMarginButton_margin, jButton(text, action));
5  
}
6  
7  
static JButton jMarginButton(int margin, S text, O action) {
8  
  ret setMargin(margin, jButton(text, action));
9  
}
10  
11  
static JButton jMarginButton(S text) {
12  
  ret jMarginButton(text, null);
13  
}
14  
15  
static JButton jMarginButton(BufferedImage img, O action) {
16  
  ret setMargin(jMarginButton_margin, jButton(img, action));
17  
}

Author comment

Began life as a copy of #1014640

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1014643
Snippet name: jMarginButton
Eternal ID of this version: #1014643/4
Text MD5: d19460653fd0b9870c2f80c2edfd873c
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-11 14:31:03
Source code size: 478 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 451 / 484
Version history: 3 change(s)
Referenced in: [show references]