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 105059 - Non-menu components should or should not be allowed in menus
Summary: Non-menu components should or should not be allowed in menus
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker with 1 vote (vote)
Assignee: Joshua Marinacci
: 103573 196444 (view as bug list)
Depends on:
Reported: 2007-05-29 19:15 UTC by Joshua Marinacci
Modified: 2014-01-20 22:23 UTC (History)
3 users (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Marinacci 2007-05-29 19:15:03 UTC
Dragging a non-menu component like a JLabel from the palette to a menubar does not work. It will 
correctly be refused. However, if you add the JLabel to a panel on the form and then drag the label to the 
menu then it will be added to the menu.  This probably is not correct. Non-menu components should not 
be allowed inside menus even though the Swing spec does allow them.  If we decide that non-menu 
components *should* be allowed in menus using the visual builder, then this bug should be used to track 
the changes required to do that.
Comment 1 Joshua Marinacci 2007-05-29 19:18:53 UTC
*** Issue 103573 has been marked as a duplicate of this issue. ***
Comment 2 jarome 2007-05-30 00:56:03 UTC
Look at the picture I attached to issue 103573. I think this is not only
legitimate, but desirable. Why do we have to waste GUI real estate on things
like laptops and PDAs? I was unable to use Matisse on my project because of this. 

It is legal in Swing. It should be legal in Matisse.
Comment 3 Joshua Marinacci 2007-06-05 16:23:50 UTC
Since this is an uncommonly requested feature (and I'm not sure it's even the right thing to allow) I am 
marking this as a P5 Feature for the future
Comment 4 Jan Stola 2011-11-09 14:43:00 UTC
*** Bug 196444 has been marked as a duplicate of this bug. ***