OS/X GUI applications

Michael Hall mik3hall at gmail.com
Thu Dec 29 03:51:27 UTC 2022


Mail.app not receiving for some reason. So from gmail in Safari.

>The Apple system properties are going to remain as they are, unless e.g.
there's some good reason to change the key of a property.

OK, good to know. I'm pretty sure -Dapple.laf.useScreenMenuBar=true was
made the OS/X application default. I thought some of the other old property
functionality had been incorporated in some way or other but might be
mistaken.

>Afaik setAboutHandler is the only way to set such a callback.

There seems to be some other way because I don't find anywhere I use this.
I eliminated all Apple system properties but still get an About... It seems
you are correct that eliminating the about.name appears to have no impact.
Eliminating -Dapple.awt.application.name=HalfPipe and the About menu item
no longer shows the application name but rather the unpackaged main class
name. The About window is still correct. It includes the application icon,
the application name (valid) in bold. Also, Version and Copyright it
appears to get from the application Info.plist. Rather a nice default. I
could post a screen shot somewhere? Possibly something has been cached for
the app by Apple from some time ago? Or I still need to figure out where
this comes from.

>Ask the JavaFX mailing list for supporting an About handler if they don't
already have it; I believe their mailing list is openjfx-dev at openjdk.org

OK, this part of the support would be split. Thanks.










On Wed, Dec 28, 2022 at 5:08 PM SWinxy <swinxythecat at gmail.com> wrote:

> The Apple system properties are going to remain as they are, unless e.g.
> there's some good reason to change the key of a property. Afaik
> setAboutHandler is the only way to set such a callback. I don't know what "
> com.apple.mrj.application.apple.menu.about.name" is, as it's not a string
> in the JDK. Ask the JavaFX mailing list for supporting an About handler if
> they don't already have it; I believe their mailing list is
> openjfx-dev at openjdk.org.
>
> On Wed, Dec 28, 2022 at 10:11 AM Michael Hall <mik3hall at gmail.com> wrote:
>
>> I was wondering for some reason what version of the Scene Builder
>> application I had. There was no application “About” menu item.
>> I noticed one of my own applications did have this but I didn’t remember
>> how.
>> I finally noticed on my jpackage options I was still using…
>>
>> -Dcom.apple.mrj.application.apple.menu.about.name=HalfPipe
>>
>> Which I assume is enabling the feature.
>>
>> I also include…
>>
>> -Dapple.laf.useScreenMenuBar=true -Dapple.awt.application.name=HalfPipe
>>
>> I am aware the jdk has replaced or eliminated some of this but I didn’t
>> think still including them would cause any problems and more or less forgot
>> they were there.
>>
>> Is it the intention to continue supporting any of these old Apple
>> properties? Or are they planned to all be eliminated?
>>
>> I verified java.awt.Desktop does include…
>>
>> void    setAboutHandler​(AboutHandler aboutHandler)
>>
>> Which I would assume is the cross platform preferred and supported way of
>> doing this. Although a bit more work to provide your own window.
>>
>> If java.awt,Desktop is still the preferred support encapsulating this
>> platform specific functionality will javaFX at some point provide similar?
>>
>> This is possibly not the correct list for this. I suppose I should raise
>> the question on the javaFX list as well as that it would be nice if
>> SceneBuilder did have an ‘about’ menu item to check the version you have
>> installed.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/client-libs-dev/attachments/20221228/69d0b4bc/attachment.htm>


More information about the client-libs-dev mailing list