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 104133 - Matisse GUI Builder can't add JMenuItem to JPopupMenu
Summary: Matisse GUI Builder can't add JMenuItem to JPopupMenu
Status: RESOLVED DUPLICATE of bug 99825
Alias: None
Product: guibuilder
Classification: Unclassified
Component: App Framework (show other bugs)
Version: 6.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-17 03:51 UTC by liujiaguang
Modified: 2007-05-22 11:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
menuitem disappear under 6.0m9 (11.29 KB, image/gif)
2007-05-17 03:52 UTC, liujiaguang
Details
can add menuitem to 5.5 existen popupmenu under 6.0m9 (17.83 KB, image/gif)
2007-05-17 03:53 UTC, liujiaguang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description liujiaguang 2007-05-17 03:51:02 UTC
1. run NetBeans IDE 6.0 Preview M9
2. create a JPane Form named "NewJPane1" in a project, then it was showed in 
Matisse GUI Builder, and Inspector window show a object tree on NewJPanel
3. right click the node of "Other Components" in the Inspector window, select 
the menu "Add From Palette->Swing Menus->Popup Menu"
4. right click the node of 'jPopupMenu1' under "Other Components" in the 
Inspector window, the menu item "Add From Palette" and "Change Order..." are 
disappear, so we can't add a new JMenuItem to a JPopupMenu.
5. The result is:
You can insert a new JMenuItem into an existent JPopupMenu in a NetBeans5.5's 
project under NetBeans6.0M9.
But you can't insert a new JMenuItem into a new JPopupMenu in NetBeans5.5's or 
NetBeans6.0M9's project under NetBeans6.0M9.
The menu item "Add From Palette" and "Change Order..." are disappear when right 
click a new JPopupMenu under NetBeans6.0M9.

Chinese:
1. 运行NetBeans IDE 6.0M9
2. 在项目中创建一个名为“NewJPane1”的面板,于是他显示在Matisse的GUI生成器窗口中,同时,
在左下方的检查器窗口中显示了NewJPane1的对象树
3. 在检查器窗口的“其他组件”节点上按鼠标右键,选择菜单“从组件面板上添加->Swing Menus-
>Popup Menu”
4. 在检查器窗口的“其他组件”的下级节点“jPopupMenu1”上按鼠标右键,此选择菜单中没有“添
加”和“更改顺序”这两个子菜单了,因此,我们无法把JMenuItem添加到JPopupMenu里
5. 结论是:
在NetBeans6.0M9中,你可以打开一个NetBeans5.5的项目,并向已经存在的JPopupMenu中添加菜单
项JMenuItem。
但是,在NetBeans6.0M9中,无论打开一个NetBeans5.5的项目还是打开一个NetBeans6.0M9的项
目,都无法向一个新的JPopupMenu中添加菜单项JMenuItem。
Comment 1 liujiaguang 2007-05-17 03:52:11 UTC
Created attachment 42486 [details]
menuitem disappear under 6.0m9
Comment 2 liujiaguang 2007-05-17 03:53:17 UTC
Created attachment 42487 [details]
can add menuitem to 5.5 existen popupmenu under 6.0m9
Comment 3 Jiri Vagner 2007-05-22 11:09:26 UTC
Thank you for your issue report.

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