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 107375 - MENU: duplication of jmenu
Summary: MENU: duplication of jmenu
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: App Framework (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Joshua Marinacci
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-20 09:22 UTC by Jana Maleckova
Modified: 2007-06-25 16:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
107375 (3.09 KB, text/plain)
2007-06-20 10:07 UTC, Jana Maleckova
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jana Maleckova 2007-06-20 09:22:56 UTC
Product Version: NetBeans IDE Dev (Build 200706200326) Java: 1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02
System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb) Userdir: D:\userdir60

Description:
============
have frame with jmenu bar. 
1. insert next jmenu in menu bar -> menu bar contains 3 menus
2. move the second menu under e.g. the third one
See, menu is duplicated in inspector and in source code as well

jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenu2 = new javax.swing.JMenu();
        jMenu3 = new javax.swing.JMenu();
        jMenu2 = new javax.swing.JMenu(); 

when the last moved menu is deleted from inspector, it causes compilation errors and exception is thrown when user
switches from design to source.

StackTrace:
===========
java.lang.NullPointerException
	at org.netbeans.modules.form.JavaCodeGenerator.generateComponentCreate(JavaCodeGenerator.java:1192)
	at org.netbeans.modules.form.JavaCodeGenerator.addCreateCode(JavaCodeGenerator.java:1000)
	at org.netbeans.modules.form.JavaCodeGenerator.addCreateCode(JavaCodeGenerator.java:1005)
	at org.netbeans.modules.form.JavaCodeGenerator.addCreateCode(JavaCodeGenerator.java:1005)
Comment 1 Jana Maleckova 2007-06-20 10:07:42 UTC
Created attachment 44025 [details]
107375
Comment 2 Joshua Marinacci 2007-06-22 01:45:42 UTC
This is fixed now.
Comment 3 Jana Maleckova 2007-06-25 16:46:28 UTC
verified on

Product Version: NetBeans IDE 6.0 Milestone 10 (build 200706242201) Java: 1.6.0_02-ea; Java HotSpot(TM) Client VM
1.6.0_02-ea-b02 System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb)