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

10
LINES

< > BotCompany Repo | #1015712 // setFrameIconNow - set JFrame's icon to a snippet image

JavaX fragment (include)

1  
static void setFrameIconNow(JFrame frame, S imageID) {
2  
  pcall {
3  
    if (frame != null)
4  
      frame.setIconImage(imageIcon(imageID).getImage());
5  
  }
6  
}
7  
8  
static void setFrameIconNow(Component c, S imageID) {
9  
  setFrameIconNow(getFrame(c), imageID);
10  
}

Author comment

Began life as a copy of #1003587

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: #1015712
Snippet name: setFrameIconNow - set JFrame's icon to a snippet image
Eternal ID of this version: #1015712/1
Text MD5: 7ec6b8fbcaf28cb8d61e092679364738
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-24 17:15:42
Source code size: 257 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 357 / 399
Referenced in: [show references]