Tray Icon?
Scott Palmer
swpalmer at gmail.com
Fri Jul 31 23:45:28 UTC 2020
I should also point out that this shortcoming was identified nearly 9 years ago.
https://bugs.openjdk.java.net/browse/JDK-8092115
I would love to make some progress on this, but I think doing it right is a bigger job than “outsiders” can tackle. Ideally most of the desktop APIs should be supported by JavaFX without AWT/Swing. I think that requires some careful thought. Some of the code should be independent of the UI toolkit and it could be shared between the AWT and JavaFX implementations. In a modular JRE we shouldn’t need the Swing modules to have a system tray icon in a JavaFX app.
Scott
> On Jul 31, 2020, at 7:34 PM, Scott Palmer <swpalmer at gmail.com> wrote:
>
> No you can’t. System tray support is something else, not an application icon in the start bar or doc.
>
> Scott
>
>> On Jul 31, 2020, at 6:02 PM, Michael Paus <mp at jugs.org> wrote:
>>
>> You can add such an icon to your JavaFX app if you bundle it with the jpackage tool distributed with JDK 14+
>>
>>>> Am 31.07.20 um 23:07 schrieb Davide Perini:
>>> Hi all guys,
>>> love JavaFX, it's so productive, so easy to use, can't understand why the world don't use it "for some tasks".
>>>
>>> I know that tray icon can be easily done with AWT but is there something for JavaFX?
>>> Is it possible to create a tray icon with JavaFX?
>>>
>>> Thanks
>>> Davide
>>
>>
>>
More information about the openjfx-dev
mailing list