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

16
LINES

< > BotCompany Repo | #1014640 // 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 #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: 505 / 517
Referenced in: [show references]