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

13
LINES

< > BotCompany Repo | #1015863 // jDesktopPaneWithSkyPicture

JavaX fragment (include)

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

static JDesktopPane jDesktopPaneWithSkyPicture(S imageID, Color background) {
  ret setBackground(background, swingNu(DesktopPaneWithSkyPicture, loadImage2(imageID)));
}

Author comment

Began life as a copy of #1009942

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1015863
Snippet name: jDesktopPaneWithSkyPicture
Eternal ID of this version: #1015863/4
Text MD5: 3c60cabb9a04049b761252aa97db3548
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-29 00:42:40
Source code size: 390 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 371 / 433
Version history: 3 change(s)
Referenced in: [show references]