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

12
LINES

< > BotCompany Repo | #1016580 // jDesktopPaneWithFitPicture

JavaX fragment (include)

sclass DesktopPaneWithFitPicture extends JDesktopPane {
  BufferedImage image;
  *(BufferedImage *image) {}
  
  protected void paintComponent(Graphics g) {  
    paintFitBackground(this, g, image);
  }
}

static JDesktopPane jDesktopPaneWithFitPicture(S imageID) {
  ret swingNu(DesktopPaneWithFitPicture, loadImage2(imageID));
}

Author comment

Began life as a copy of #1015863

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1016580
Snippet name: jDesktopPaneWithFitPicture
Eternal ID of this version: #1016580/3
Text MD5: 21e161801993c90fc0f6c09dd38615ea
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-24 03:48:00
Source code size: 341 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 266 / 312
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1019438 - jDesktopPaneWithFitPicture_smooth
#1031443 - jDesktopPaneWithCenteredPicture