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

Summary: Strange settings of Menus in frames
Product: guibuilder Reporter: Jan Stola <jstola>
Component: CodeAssignee: _ ttran <ttran>
Status: CLOSED WONTFIX    
Severity: normal    
Priority: P4    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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.