[ I originally wasn't going to post to this list because I didn't
think this issue to be Mac-specific, but upon searching Sun's Forums on
this issue and not finding it addressed, I am now wondering if this
might just be a Mac-specific bug.]
I have menus in my component that I would like to be accessible via the
JMenuBar and a JPopupMenu. The problem is that I can't use just 1
instance of the menu and pass it to the menubar and popup; I have
create 2 instances, adding the 1st to the menubar and 2nd to the popup.
Here's what I am trying:
JMenuBar mb = new JMenuBar();
JPopupMenu pum = new JPopupMenu();
JMenu jm = new JMenu("Stuff");
... add menu items to jm
mb.add(jm);
pum.add(pum);
However, the above code leads to only pum showing the "Stuff" menu.
Is this a bug (OSX 10.2.8, Java 1.4)?
thanks,
email@hidden
Check out AOL.com today. Breaking news, video search, pictures, email and IM. All on demand. Always Free.
_______________________________________________
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