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

10
LINES

< > BotCompany Repo | #1019406 // dm_setTrayIcon_left - add/change/remove single tray icon for module

JavaX fragment (include)

svoid dm_setTrayIcon_left(final JComponent icon) {
  final DynModule dm = dm_current_mandatory();
  swing {
    temp dm.enter();
    JComponent oldIcon = cast dm.transientGeneralMap.get('trayIcon);
    dm_removeTrayIcon(oldIcon);
    mapPutOrRemove(dm.transientGeneralMap, trayIcon := icon);
    dm_addTrayIcon_left(icon);
  }
}

Author comment

Began life as a copy of #1019404

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1019406
Snippet name: dm_setTrayIcon_left - add/change/remove single tray icon for module
Eternal ID of this version: #1019406/4
Text MD5: baf4264f0b0911b81b27a0214f1cad59
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-06 21:22:38
Source code size: 337 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 249 / 296
Version history: 3 change(s)
Referenced in: [show references]