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

15
LINES

< > BotCompany Repo | #1009665 // Tray Icon Test (print all mouse events)

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (6809L/39K).

!7

// On Linux, I am getting mouseMoved and the click events
// but no mouseEnter, mouseExit or mouseDragged

p {
  //installTrayIcon(#1009664, "Test");
  //SystemTray.getSystemTray().add(new TrayIcon(imageIcon(#1009664).getImage(), "Test", null);
  
  var ti = new TrayIcon(resizeImage(loadImage2(#1009667), 24), "Test", null);
  ti.addMouseMotionListener(proxy_printAllMethodCalls MouseMotionListener());
  ti.addMouseListener(proxy_printAllMethodCalls MouseListener());
  
  SystemTray.getSystemTray().add(ti);
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

-
Snippet ID: #1009665
Snippet name: Tray Icon Test (print all mouse events)
Eternal ID of this version: #1009665/14
Text MD5: 68a9b29dce82fa45f1f5bf58e361f0a3
Transpilation MD5: 0e41c4a2762b6da73b7d991edbfe3575
Author: stefan
Category: javax / gui
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-07 20:36:29
Source code size: 530 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 572 / 748
Version history: 13 change(s)
Referenced in: