This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 6551 - Strange settings of Menus in frames
Summary: Strange settings of Menus in frames
Status: CLOSED WONTFIX
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: _ ttran
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-05-05 20:32 UTC by Jan Stola
Modified: 2002-07-19 15:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Stola 2000-05-05 20:32:39 UTC
JFrame`s property sheet has menuBar property (with type java.awt.MenuBar),
but hasn`t JMenuBar property (with type javax.swing.JMenuBar).
I think it should have JMenuBar property rather than menuBar property.

JInternalFrame`s property sheet has JMenuBar property (on Properties tab)
and _menu bar_ property (on Code Generation tab), but these properties
don`t cooperate - the second one overrides the first one.
I think they should cooperate or there should be only one of them.
Comment 1 Tomas Pavek 2000-07-03 16:27:59 UTC
The "menuBar" property is taken automatically from JDK's generated beaninfos.
JFrame inherites this property from AWT Frame, and also has a "JMenuBar"
property, but it is hidden. Maybe this should be conversely (or both hidden).
JInternalFrame uses both "JMenuBar" and "menuBar" ("menuBar" is deprecated), no
one is hidden. I think this is some inconsistency in AWT/Swing libraries.
Property "menu bar" on the code generation tab is a special support (from the
form editor) for choosing the main menu bar (from more menu bars created for
the form). User should use this one.
Comment 2 Marek Grummich 2000-07-25 09:33:59 UTC
Priority is changed to P4 (normal).
Comment 3 Jan Stola 2000-07-27 17:54:59 UTC
Bug assigned to the module owner.