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

7
LINES

< > BotCompany Repo | #1006263 // jCenterImageWithText

JavaX fragment (include)

static JLabel jCenterImageWithText(S imageID, S text) {
  ret addTextToLabel(new JLabel(imageIcon(imageID)), text);
}

static JLabel jCenterImageWithText(BufferedImage image, S text) {
  ret addTextToLabel(new JLabel(new ImageIcon(image)), text);
}

Author comment

Began life as a copy of #1004503

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1006263
Snippet name: jCenterImageWithText
Eternal ID of this version: #1006263/1
Text MD5: c1ffaea0659789e0b4444d55899eed76
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-26 02:37:01
Source code size: 254 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 511 / 511
Referenced in: #1006265 - jImageWithTextToTheRight
#1006654 - Standard functions list 2 (LIVE, continuation of #761)