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 122383 - Unwanted menu items in custom menubar component
Summary: Unwanted menu items in custom menubar component
Status: RESOLVED WONTFIX
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-20 14:07 UTC by Jiri Vagner
Modified: 2009-12-21 06:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
unwanted-menus-5.5.png (98.88 KB, image/png)
2007-11-20 14:09 UTC, Jiri Vagner
Details
unwanted-menus-6.0.png (156.58 KB, image/png)
2007-11-20 14:10 UTC, Jiri Vagner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Vagner 2007-11-20 14:07:30 UTC
After dropping custom menu bar component into form, designer added a few default components (File, Edit). See the
screenshots.

Steps to reproduce:
 - add custom menu bar component class ...

public class MyMenuBar extends javax.swing.JMenuBar  {
    public MyMenuBar() {
        this.add(new javax.swing.JMenu("a"));
        this.add(new javax.swing.JMenu("b"));        
        this.add(new javax.swing.JMenu("c"));        
    }
}

 - compile class, add it into Palette (Tools -> Add to Palette...)
 - drag and drop component from Palette into jframe form


Product Version: NetBeans IDE 6.0 RC2 (Build 200711191200)
Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-b05
System: Linux version 2.6.20-15-generic running on i386; UTF-8; en_US (nb)

I'm able to reproduce it also on ...
NetBeans IDE 5.5 (Build 200610171010)
Linux version 2.6.20-15-generic running on i386
Comment 1 Jiri Vagner 2007-11-20 14:09:46 UTC
Created attachment 53243 [details]
unwanted-menus-5.5.png
Comment 2 Jiri Vagner 2007-11-20 14:10:28 UTC
Created attachment 53244 [details]
unwanted-menus-6.0.png
Comment 3 Quality Engineering 2009-12-21 06:46:15 UTC
This bug was reported against NetBeans IDE 6.0 or an older release, or against a non-maintained module. NetBeans team does not have enough resources to get to this issue, therefore we are closing the issue as a WONTFIX. If you are interested in providing a patch for this bug, please see our NetFIX guidelines for how to proceed. 

We apologize for any inconvenience.


Thank you.
The NetBeans Team