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

7
LINES

< > BotCompany Repo | #1006263 // jCenterImageWithText

JavaX fragment (include)

1  
static JLabel jCenterImageWithText(S imageID, S text) {
2  
  ret addTextToLabel(new JLabel(imageIcon(imageID)), text);
3  
}
4  
5  
static JLabel jCenterImageWithText(BufferedImage image, S text) {
6  
  ret addTextToLabel(new JLabel(new ImageIcon(image)), text);
7  
}

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: 446 / 450
Referenced in: [show references]