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

11
LINES

< > BotCompany Repo | #1003594 // setFrameIconLater - set JFrame's icon to a snippet image (in separate thread)

JavaX fragment (include)

1  
static JFrame setFrameIconLater(Component c, final S imageID) {
2  
  final JFrame frame = getFrame(c);
3  
  if (frame != null)
4  
    thread "Loading Icon" {
5  
      final Image i = imageIcon(or2(imageID, "#1005557")).getImage();
6  
      awt {
7  
        frame.setIconImage(i);
8  
      }
9  
    }
10  
  ret frame;
11  
}

Author comment

Began life as a copy of #1003587

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1003594
Snippet name: setFrameIconLater - set JFrame's icon to a snippet image (in separate thread)
Eternal ID of this version: #1003594/1
Text MD5: 250332cea1f61aa65189c0e5fe295b80
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-18 14:06:37
Source code size: 300 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 711 / 818
Referenced in: [show references]