Libraryless. Click here for Pure Java version (5105L/32K).
sclass DesktopPaneWithCenteredPicture extends JDesktopPane { BufferedImage image; *(BufferedImage *image) {} protected void paintComponent(Graphics g) { paintCenteredBackgroundImage(this, g, image); } } static JDesktopPane jDesktopPaneWithCenteredPicture(S imageID) { ret swingNu(DesktopPaneWithCenteredPicture, loadImage2(imageID)); }
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: | 165 / 237 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |