dustinkredmond / FXTrayIcon

Tray Icon implementation for JavaFX applications. Say goodbye to using AWT's SystemTray icon, instead use a JavaFX Tray Icon.
MIT License
327 stars 26 forks source link

Show Popup Menu with left click #28

Closed hrzafer closed 2 years ago

hrzafer commented 2 years ago

Hi,

Currently, the tray icon shows the menu only when right-clicked. How can we change this behavior so that it does the same with a left click.

Thanks

EasyG0ing1 commented 2 years ago

@hrzafer - Which operating system are you using? If you're using a mac, try clicking with left and right buttons at the same time ... and that's actually an AWT feature, it's not Macs fault. :-)

hrzafer commented 2 years ago

I'm using Windows 11. FxTrayIcon works as expected. My question is can I make it show the menu with a left-click instead of a right-click.

EasyG0ing1 commented 2 years ago

No, I believe it is a limitation in AWT ... well... you COULD get it to work with the left button, but you would need to run MacOS. ;-)

dustinkredmond commented 2 years ago

Closing due to the further discussion and explanation on this subject on Issue #30. Any updates will be provided on that issue.