svoid dm_setTrayIcon(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(icon); } }
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: | 557 / 600 | 
| Version history: | 2 change(s) | 
| Referenced in: | [show references] |