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

11
LINES

< > BotCompany Repo | #1004503 // jcenterimage - actually centers perfectly, even when image is larger than our available screen space

JavaX fragment (include)

1  
static JLabel jcenterimage(S imageID) {
2  
  ret swingNu(JLabel.class, imageIcon(imageID));
3  
}
4  
5  
static JLabel jcenterimage(BufferedImage image) {
6  
  ret swingNu(JLabel.class, new ImageIcon(image));
7  
}
8  
9  
static JLabel jcenterimage(S text, S imageID) {
10  
  ret jImageLabel(text, imageID);
11  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1004503
Snippet name: jcenterimage - actually centers perfectly, even when image is larger than our available screen space
Eternal ID of this version: #1004503/3
Text MD5: 201d0b17ba26503556d8bb721cd95cec
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-03 23:52:23
Source code size: 289 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 590 / 619
Version history: 2 change(s)
Referenced in: [show references]