OS/X GUI applications
SWinxy
swinxythecat at gmail.com
Wed Dec 28 23:08:05 UTC 2022
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/939f9ab7/attachment.htm>
More information about the client-libs-dev
mailing list