dustinkredmond / FXTrayIcon

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

Added test class for Restricted access #75

Closed EasyG0ing1 closed 1 year ago

EasyG0ing1 commented 1 year ago

Also, I added an option to disable the default feature where (on the Mac at least) when you right-click on the icon, it shows the stage. This makes it impossible to add a right-click mouse event listener on trayIcon and then have it do whatever is needed. So by engaging noDefaultAction() from the Builder class or from the main class, the desired behavior can be achieved.