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

Overloaded setGraphic because the current method was throwing an error #20

Closed EasyG0ing1 closed 2 years ago

EasyG0ing1 commented 2 years ago

The current setGraphic method was throwing this error:

Exception in thread "JavaFX Application Thread" java.lang.NoClassDefFoundError: javafx/embed/swing/SwingFXUtils

So I overloaded it with a java.io.File as the argument and it works perfectly.

dustinkredmond commented 2 years ago

Closing as #19 fixes this.