OS/X GUI applications

Michael Hall mik3hall at gmail.com
Tue Jan 3 19:59:23 UTC 2023



> On Jan 3, 2023, at 1:10 PM, Philip Race <philip.race at oracle.com> wrote:
> 
> 
> 
>> FX list as well as that it would be nice if SceneBuilder did have an ‘about’ menu item to check the version you have installed.
> 
> For FX apps .. you really should be asking on the FX list.
> Most of the above - actually I suspect ALL of it is not relevant to FX.
> 
> -Phil.

I tried what FX seems to provide…

		MenuBar mb = new MenuBar();
		mb.setUseSystemMenuBar(true);

But it didn’t work. Maybe not how it should properly be used so I may ask yet.

It seems to come down to what happens in LWCToolkit. FX app’s don’t get some or any of the NSApplicationAWT code to run from it, while they normally do.
This gives you the menu item and the default Cocoa ‘About’ should work. Without it the code manages to run through although it appears to assume this has happened as shown before in ApplicationDelegate , so this seems almost lucky and actually a bug. .
I’m not sure I’ve given up just yet on figuring out what is different so the normal doesn’t happen. 

Thanks for the reply.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/client-libs-dev/attachments/20230103/75418ccf/attachment.htm>


More information about the client-libs-dev mailing list