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

12
LINES

< > BotCompany Repo | #1015901 // internalFrameIcon

JavaX fragment (include)

1  
static JInternalFrame internalFrameIcon(Component c, fS imageID) {
2  
  final JInternalFrame frame = getInternalFrame(c);
3  
  if (frame != null) thread "Loading Icon" {
4  
    final Icon i = imageIcon(or2(imageID, #1005557));
5  
    awt { frame.setFrameIcon(i); }
6  
  }
7  
  ret frame;
8  
}
9  
10  
static JInternalFrame internalFrameIcon(S imageID, Component c) {
11  
  ret internalFrameIcon(c, imageID);
12  
}

Author comment

Began life as a copy of #1004228

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: #1015901
Snippet name: internalFrameIcon
Eternal ID of this version: #1015901/8
Text MD5: be5291a0e4e30e98bb53919242b7c3d7
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-15 00:58:50
Source code size: 388 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 468 / 505
Version history: 7 change(s)
Referenced in: [show references]