Libraryless. Click here for Pure Java version (14637L/102K).
1 | !7 |
2 | |
3 | module TrayAreaTest_v2 > DynPrintLog {
|
4 | start {
|
5 | final L<Component> trayArea = dm_getOSOpt('trayAreaComponents);
|
6 | if (trayArea == null) ret with print("No tray area");
|
7 | print("Got tray area (l=" + l(trayArea) + "). Setting contents.");
|
8 | swing {
|
9 | clearList(trayArea); |
10 | trayArea.add(jcenteredlabel("Hello world!"));
|
11 | //trayArea.add(jImage_scaledToHeight(#1101400, 16)); |
12 | trayArea.add(jImage(#1101416)); |
13 | } |
14 | dm_callOS('updateMenuBar);
|
15 | print("Done.");
|
16 | } |
17 | } |
Began life as a copy of #1019383
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: | #1019386 |
| Snippet name: | Tray Area Test v2 [Dyn Module, OK, but don't use] |
| Eternal ID of this version: | #1019386/9 |
| Text MD5: | eb67ecd8cb98e97acfbe99e1703efab9 |
| Transpilation MD5: | 206acc4673d2f86a7891b5bfeabc21b7 |
| Author: | stefan |
| Category: | javax / stefan's os |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-11-04 19:31:07 |
| Source code size: | 516 bytes / 17 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 609 / 774 |
| Version history: | 8 change(s) |
| Referenced in: | [show references] |