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

11
LINES

< > BotCompany Repo | #1010279 // jImageAndTextButton - text below image

JavaX fragment (include)

static JButton jImageAndTextButton(S imageID, S text, O action) {
  JButton btn = jImageAndTextButton_defaultPlacement(imageID, text, action);
  btn.setVerticalTextPosition(SwingConstants.BOTTOM);
  btn.setHorizontalTextPosition(SwingConstants.CENTER);
  ret btn;
}

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

Author comment

Began life as a copy of #1006831

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: #1010279
Snippet name: jImageAndTextButton - text below image
Eternal ID of this version: #1010279/7
Text MD5: e7b875d3211a203ee6907c0912655e35
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-10 17:04:21
Source code size: 407 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 481 / 509
Version history: 6 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1010283 - jImageAndTextButton_defaultPlacement - text to right of image