static void setFrameIconNow(JFrame frame, S imageID) { pcall { if (frame != null) frame.setIconImage(imageIcon(imageID).getImage()); } } static void setFrameIconNow(Component c, S imageID) { setFrameIconNow(getFrame(c), imageID); }
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: | 583 / 632 | 
| Referenced in: | [show references] |