1 | svoid dm_setTrayIcon_left(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_left(icon); |
9 | } |
10 | } |
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: | 341 / 385 |
Version history: | 3 change(s) |
Referenced in: | [show references] |