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

16
LINES

< > BotCompany Repo | #1003312 - jbutton - extended synonym of newButton

JavaX fragment (include)

static JButton jbutton(S text, O action) {
  ret newButton(text, action);
}

// button without action
static JButton jbutton(S text) {
  ret newButton(text, null);
}

/*static JButton jbutton(BufferedImage img, O action) {
  ret setButtonImage(img, jbutton("", action));
}*/

static JButton jbutton(Action action) {
  ret swingNu(JButton.class, action);
}

Author comment

Began life as a copy of #1003297

download  show line numbers  debug dex   

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

No comments. add comment

Snippet ID: #1003312
Snippet name: jbutton - extended synonym of newButton
Eternal ID of this version: #1003312/7
Text MD5: a8e38405427b6402a9f8824e2fad7a48
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-24 00:48:25
Source code size: 370 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 442 / 492
Version history: 6 change(s)
Referenced in: [show references]

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