[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-2d-dev
Subject:    Re: OS/X GUI applications
From:       Michael Hall <mik3hall () gmail ! com>
Date:       2022-12-31 22:47:06
Message-ID: 5471F0B5-2DEE-4FED-A0BD-849CE0FE69C3 () gmail ! com
[Download RAW message or body]

> 
> Fwiw, I did a little more looking at this.
> 

Additionally FWIW, I tracked the handling through on this and it all looked good. I \
entered a null dispatch at the end and got the dialog fine for a javaFX app.

The problem is simply that the About menu item is never added for javaFX app's.

In ApplicationDelegateā€¦
NSLog(@"ApplicationDelegate init fAboutMenu %@", self.fAboutMenu);

Gets...
2022-12-31 16:13:30.892 HelloWorld[42268:1553617] ApplicationDelegate init fAboutMenu \
<NSMenuItem: 0x60000172abc0 Hide HelloWorld, ke='Command-H'>

Showing the About menu item is assumed there at this point but it isn't, fAboutMenu \
is instead the Hide item. It manages to run fine while being wrong about this, \
although this seems a bug already with this bad assumption.

There are places where it suggests on occasion a default menu bar is installed. I'm \
thinking possibly for some reason it decides to do this for javaFX apps and it is \
without the About item? Other places it seems to decide whether or not to use a \
default nib, might factor in. I'm not that familiar with any of this. 

Right now I'm having problems backtracking to where the menu's are initially handled, \
I'm not hitting any of my additional sophisticated println and NSLog debugging for \
some reason.

I will probably keep looking but would appreciate it if anyone has any suggestions \
where that looking should be done. 

Otherwise, I would say only the jdk is involved at this point so it would be a bug on \
that side, not javaFX. If you want to just go ahead and call it that I guess I can \
leave it at that. 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic