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   

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

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: 117 / 141
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1016580 & http://1016580.tinybrain.de