Libraryless. Click here for Pure Java version (15097L/92K).
1 | svoid dm_addTrayIcon_left(final JComponent icon) { |
2 | if (icon == null) ret; |
3 | final DynModule m = dm_current_mandatory(); |
4 | swing { |
5 | L<JComponent> l = dm_getOSOpt('trayAreaComponents); |
6 | if (l == null) ret; |
7 | if (l.contains(icon)) ret; |
8 | l.add(0, icon); |
9 | dm_updateTrayIcons(); |
10 | temp dm_enter(m); |
11 | dm_ownTimer dm_removeTrayIcon(icon); |
12 | } |
13 | } |
Began life as a copy of #1019393
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: | #1019404 |
Snippet name: | dm_addTrayIcon_left - add to the left of the pack |
Eternal ID of this version: | #1019404/4 |
Text MD5: | 1d737d48a52a08fd44bf1c29149da9dd |
Transpilation MD5: | 7d293e8fd3bf16dbd3dfb8ffe140f0fa |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-28 17:48:45 |
Source code size: | 369 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 332 / 421 |
Version history: | 3 change(s) |
Referenced in: | [show references] |