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)

static JFrame setFrameIconLater(Component c, final S imageID) {
  final JFrame frame = getFrame(c);
  if (frame != null)
    thread "Loading Icon" {
      final Image i = imageIcon(or2(imageID, "#1005557")).getImage();
      awt {
        frame.setIconImage(i);
      }
    }
  ret frame;
}

Author comment

Began life as a copy of #1003587

download  show line numbers  debug dex   

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

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: 457 / 530
Referenced in: [show references]

Formerly at http://tinybrain.de/1003594 & http://1003594.tinybrain.de