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 103573 - Support for JButtons in JMenuBars
Summary: Support for JButtons in JMenuBars
Status: RESOLVED DUPLICATE of bug 105059
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P4 blocker (vote)
Assignee: Joshua Marinacci
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-09 15:20 UTC by jarome
Modified: 2007-05-29 19:18 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
An example showing the utility of buttons (51.92 KB, image/png)
2007-05-15 18:42 UTC, jarome
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jarome 2007-05-09 15:20:49 UTC
I am a nut about conserving screen space. If I design my app manually, I can put
JButtons into a JMenuBar. This lets my users know that some actions are
press-to-initiate without taking other space up in my app screen. 

But if I try this with Matisse, I am unable to drage a Button onto a MenuBar. It
seems to me that this is legitimate and should be supported.
Comment 1 Tomas Pavek 2007-05-15 17:50:19 UTC
Should be technically possible, though it seems a bit strange to me to add to 
menu anything else than menu.
Comment 2 jarome 2007-05-15 18:42:13 UTC
Created attachment 42426 [details]
An example showing the utility of buttons
Comment 3 jarome 2007-05-15 18:44:57 UTC
So, in my app, Previous, next, and app are all buttons. Status is a JLabel and
JTextField. Why should I have to waste screen real estate and put them elsewhere?
Using a button shows the user that it is a pushable item.
Comment 4 Joshua Marinacci 2007-05-17 00:16:10 UTC
This is this a very unusual use case I'm going to lower the priority and call it a feature request.
Comment 5 jarome 2007-05-17 00:29:22 UTC
It is not unusual. Its just that people have not thought to do it. The usual GUI
is bloated.
Comment 6 jarome 2007-05-17 00:35:01 UTC
Aside from the fact that the MenuBar specs allow placement of other items, and
hence it is a defect.
Comment 7 Joshua Marinacci 2007-05-29 19:18:53 UTC

*** This issue has been marked as a duplicate of 105059 ***