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

17
LINES

< > BotCompany Repo | #1014643 // jMarginButton

JavaX fragment (include)

static int jMarginButton_margin = 10;

static JButton jMarginButton(S text, O action) {
  ret setMargin(jMarginButton_margin, jButton(text, action));
}

static JButton jMarginButton(int margin, S text, O action) {
  ret setMargin(margin, jButton(text, action));
}

static JButton jMarginButton(S text) {
  ret jMarginButton(text, null);
}

static JButton jMarginButton(BufferedImage img, O action) {
  ret setMargin(jMarginButton_margin, jButton(img, action));
}

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: 452 / 484
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)