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

12
LINES

< > BotCompany Repo | #1016580 // jDesktopPaneWithFitPicture

JavaX fragment (include)

1  
sclass DesktopPaneWithFitPicture extends JDesktopPane {
2  
  BufferedImage image;
3  
  *(BufferedImage *image) {}
4  
  
5  
  protected void paintComponent(Graphics g) {  
6  
    paintFitBackground(this, g, image);
7  
  }
8  
}
9  
10  
static JDesktopPane jDesktopPaneWithFitPicture(S imageID) {
11  
  ret swingNu(DesktopPaneWithFitPicture, loadImage2(imageID));
12  
}

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