Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Menu error crashes app: Swing, apple.laf, and useScreenMenuBar



I wrote a while back about the menu crashing an app we are working on. I have since lost the email and cannot find reference via archive searches, but to the best of my I recollection the fix was to have the app display it's menus in the jFrame.

Ideally, for the time being, I would be able to use the System LAF and have the jFrame(s) have their own menus.

Please confirm that the following code should do the trick:
javax.swing.UIManager.setLookAndFeel (javax.swing.UIManager.getSystemLookAndFeel());
javax.swing.UIManager.put("apple.laf.useScreenMenuBar", "false");


the second line has no effect. If it should do the trick then something is up. Suggestions welcome.

Interestingly the app runs fine as is on my system, but fails on three other systems (new G5 and older G4 hardware) with the same Tiger/Java versions...haven't tracked that one down yet.

FWIW the crash completely disappears on all systems, if I use the Metal PLAF (all the non-Aqua PLAFs actually).

thanks,
-m

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.