re: MacOs and inner menu bar

[email protected] Wed, 1 Jun 2005 0:29:00 -0700
Newsgroups gmane.comp.embedded.carlsbad-cubes
Message-ID <[email protected]>
OK. But can you ensure to not break existing apps?
Since this is only a point rel. I'd like to be able to replace the swixml.jar without the need to recomplile client apps or make code modification - if possible at all.
[email protected] wrote:
__________
>Hello again,
>
>while we tried to get the menu of our application inside the application window, I stumbled across this piece of code in the SwingEngines constructor:
>   // Use apple's ScreenMenuBar instead of the MS-Window style
>        // application's own menu bar
>        System.setProperty("com.apple.macos.useScreenMenuBar", "true");
>        System.setProperty("apple.laf.useScreenMenuBar", "true");
>
>        // Don't let the growbox intrude other widgets
>        System.setProperty("apple.awt.showGrowBox", "true");
>        System.setProperty("com.apple.mrj.application.growbox.intrudes", "false");
>      }
>
>I would like to remove this section or at least encapsulates it with a 
>if (System.getProperty("com.apple.macos.useScreenMenuBar") != null) 
>or the like, because the only way to work around this is to call the System.setProperty after the call to the main applications SwingEngine's constructor. IMHO the location of the applications (MacOs') Menu bar should'nt be enforced in any way.
>
>Yours sincerly,
>
>Frank
>
>
>_______________________________________________
>Forum mailing list
>[email protected]
>http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com