Creating tray icon using JavaFX

后端 未结 5 578
南方客
南方客 2021-02-07 15:48

I want to write a tray icon via JavaFx, but I only find that can write by awt. Is there any way that can write it use JavaFx?

It w

5条回答
  •  再見小時候
    2021-02-07 16:30

    If you'd prefer to not use AWT directly, I've created a small project FXTrayIcon which translates JavaFX MenuItems to AWT MenuItems and abstracts away all of the ugly AWT bits. It's at least a small help until JavaFX supports this natively.

    See it on my GitHub page

提交回复
热议问题