On Wed, 1 Jul 2026 23:50:01 GMT, Martin Fox <[email protected]> wrote:

>> modules/javafx.graphics/src/main/java/javafx/application/ApplicationServices.java
>>  line 32:
>> 
>>> 30: /**
>>> 31:  * This class provides services for an Application. This includes
>>> 32:  * methods to show and hide other applications.
>> 
>> what is the purpose of this?  how is it relevant to the application menu?
>
> If you want to replace the default application menu you need to provide three 
> standard items, "Hide AppName", "Hide Others", and "Show All". These require 
> calling into the platform code to implement. There was no obvious place to 
> add these calls so I added ApplicationServices.

This class does not feel right: it provides a public API to something that only 
exists on one platform.  Or do you have plans to offer similar functionality in 
all supported platforms?

I think this warrants a wider discussion.

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/1881#discussion_r3516166542

Reply via email to