1 | svoid dm_setTrayIcon(final JComponent icon) { |
2 | final DynModule dm = dm_current_mandatory(); |
3 | swing { |
4 | temp dm.enter(); |
5 | JComponent oldIcon = cast dm.transientGeneralMap.get('trayIcon); |
6 | dm_removeTrayIcon(oldIcon); |
7 | mapPutOrRemove(dm.transientGeneralMap, trayIcon := icon); |
8 | dm_addTrayIcon(icon); |
9 | } |
10 | } |
Began life as a copy of #1019406
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: | #1019431 |
Snippet name: | dm_setTrayIcon - add/change/remove single tray icon for module |
Eternal ID of this version: | #1019431/3 |
Text MD5: | 2855fcd04570de95f0a56cbb3fd170f0 |
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 20:59:43 |
Source code size: | 327 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 341 / 369 |
Version history: | 2 change(s) |
Referenced in: | [show references] |