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

12
LINES

< > BotCompany Repo | #1031443 // jDesktopPaneWithCenteredPicture

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (5105L/32K).

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

Author comment

Began life as a copy of #1016580

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031443
Snippet name: jDesktopPaneWithCenteredPicture
Eternal ID of this version: #1031443/1
Text MD5: c1c2e11c797eaee02b2c5d61a1b73b62
Transpilation MD5: 9d3da881869a6cabbf74cca05c7fa9cd
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-12 10:56:33
Source code size: 364 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 166 / 238
Referenced in: [show references]