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

11
LINES

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

JavaX fragment (include)

static JLabel jcenteredimage(S imageID) {
  ret jcenterimage(imageID);
}

static JLabel jcenteredimage(BufferedImage image) {
  ret jcenterimage(image);
}

static JLabel jcenteredimage(S text, S imageID) {
  ret jcenterimage(text, imageID);
}

Author comment

Began life as a copy of #1004503

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: #1015282
Snippet name: jcenteredimage - synonym of jcenterimage - actually centers perfectly, even when image is larger than our available screen space
Eternal ID of this version: #1015282/4
Text MD5: 8deaee6401052833bc699a2696f92915
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:55
Source code size: 252 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 357 / 409
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)