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   

Travelled to 9 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz

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: 109 / 124
Version history: 3 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1014643 & http://1014643.tinybrain.de