Mailing Lists: Apple Mailing Lists

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

JMenuBar repeating menus



Hi,
I am trying to fix a problem I am having with my menu items constantly being added to the main menu bar.


I have created an example project that I can email to anyone who would like to see it first hand.

Here is a description:
I have a JDesktopPane. I can create any number of JInternalFrames, each of which has its own JMenuBar. When focus changes from JInternalFrame to JInternalFrame, I am setting the JMenuBar for the app to be the JMenuBar of the JInternalFrame, when I do this, the menus repeat them selves if I click back on any of the previous JInternalFrames, so am continually having menus added to the menu bar of the previous JInternlaFrame when switching focus.


Example:

(APPLE) App Name      File    Edit    File   Edit   File   Edit  .....

This only happens in tiger (I'm using 10.4.2/XCode 2.1), if I go back to 10.3.9 and use XCode 1.5, no problems.

Also, On both 10.4.2 and 10.3.9, The JInternalFrame that is out of focus should have its JMenuBar in its frame (my opition), but instead the JMenuBar is missing and the JInternalFrame has an empty transparent space where the JMenuBar should be. Is this normal?

Any Ideas?

_______________________________________________
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.