re: MacOs and inner menu bar
[email protected] Wed, 01 Jun 2005 09:47:29 +0200
| Newsgroups | gmane.comp.embedded.carlsbad-cubes |
|---|---|
| Organization | http://freemail.web.de/ |
| Message-ID | <[email protected]> |
List for Users of Carlsbad Cubes' Technologies and Products <[email protected]> schrieb am 01.06.05 09:34:42: > > OK. But can you ensure to not break existing apps? This was the idea of the surrounding if (System.getProperty(...) == null) I made a mistake with, sorry for the confusion. This makes sure a user defined behaviour gets only used if provided. > 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. I was aware of that and this is my intention as well. Again, sorry for the confusing statement obfruscating my intention ;) Frank > [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 > > > _______________________________________________ > Forum mailing list > [email protected] > http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com