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

13
LINES

< > BotCompany Repo | #1019393 - dm_addTrayIcon

JavaX fragment (include)

svoid dm_addTrayIcon(final JComponent icon) {
  if (icon == null) ret;
  final DynModule m = dm_current_mandatory();
  swing {
    L<JComponent> l = dm_getOSOpt('trayAreaComponents);
    if (l == null) ret;
    if (l.contains(icon)) ret;
    l.add(icon);
    dm_updateTrayIcons();
    temp dm_enter(m);
    dm_ownTimer(icon, f dm_removeTrayIcon);
  }
}

download  show line numbers  debug dex   

Travelled to 10 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pzhvpgtvlbxg, tvejysmllsmz

No comments. add comment

Snippet ID: #1019393
Snippet name: dm_addTrayIcon
Eternal ID of this version: #1019393/7
Text MD5: d82e36062a96a47e1b581a4ac6136f28
Author: stefan
Category: javax / stefan's os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-05 00:44:22
Source code size: 364 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 113 / 132
Version history: 6 change(s)
Referenced in: [show references]

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