Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

11
LINES

< > BotCompany Repo | #1009668 // installTrayIcon2 - takes Image and PopupMenu

JavaX fragment (include)

static TrayIcon installTrayIcon2(Image image, S tooltip) {
  ret installTrayIcon2(image, tooltip, null);
}

static TrayIcon installTrayIcon2(final Image image, fS tooltip, final PopupMenu menu) ctex {
  ret swing(func -> TrayIcon {
    TrayIcon trayIcon = new TrayIcon(image, tooltip, menu);
    SystemTray.getSystemTray().add(trayIcon);
    ret trayIcon;
  });
}

Author comment

Began life as a copy of #1003656

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1009668
Snippet name: installTrayIcon2 - takes Image and PopupMenu
Eternal ID of this version: #1009668/3
Text MD5: 3c6b9c7032401e95f8a181221204d17d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-19 23:38:29
Source code size: 373 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 415 / 441
Version history: 2 change(s)
Referenced in: [show references]