Enhancement: native JavaFX api to interact with the icon / app / system tray

Kevin Rushforth kevin.rushforth at oracle.com
Thu Jan 7 22:59:07 UTC 2021

I do agree this would be a useful feature. The main JBS issue for this 
issue is:

JDK-8090475: System tray API [1]

My advice (caution?) for anyone wanting to tackle this, is that it will 
take a fair amount of work to get this right and do it in such a way 
that both it, and any future "Desktop"-like API will fit in naturally. 
As part of this, we should consider what a JavaFX equivalent of AWT JEP 
272 [1][2] (Platform-Specific Desktop Features) would look like.

-- Kevin

[1] https://bugs.openjdk.java.net/browse/JDK-8090475
[2] https://openjdk.java.net/jeps/272
[3] https://bugs.openjdk.java.net/browse/JDK-8048731

On 1/5/2021 5:42 AM, Nir Lisker wrote:
> Hi,
> System tray support is one of the most recurring requests. The known
> workaround is for the application writer to use the AWT system tray
> support. It is not possible for core JavaFX to rely on it.
> If you would like to contribute, I'm sure the request will be approved.
> - Nir
> On Tue, Jan 5, 2021 at 12:44 PM Clement Levallois <
> clementlevallois at protonmail.com> wrote:
>> Dear all,
>> This is to suggest an enhancement to javafx: a native way to interact with
>> the icon / app / system tray
>> See this pic for an illustration of the icon tray, if unclear:
>> There exist java awt classes to access the System Tray, but this obliges
>> to add these classes to the build, which can be problematic?
>> Example of these awt classes in the context of a JavaFX app:
>> https://stackoverflow.com/questions/12571329/javafx-app-in-system-tray
>> Desktop apps get more traction if they can be minimized and left to run in
>> the background then accessed later via the icon tray, rather than closed
>> and restarted. An API for the icon tray would help manage this part of the
>> life cycle of an application.
>> Doing some further research for this first post on this mailing list, I
>> realize there is already a request for enhancement opened since 2014:
>> https://bugs.openjdk.java.net/browse/JDK-8092115
>> CL
>> --
>> Clément Levallois
>> Sent with [ProtonMail](https://protonmail.com) Secure Email.

More information about the openjfx-dev mailing list