问题描述
我需要将 popup menu 添加到 jframe,但是当我将该组件放在那里时,它就会消失.我可以在代码中看到它,但没有办法编辑它的任何内容.有没有办法像说 menu bar 那样编辑它?如果这很重要,我会使用 netbeans 7.2.1.
i need to add a popup menu to the jframe, but when i drop that component there it just dissappears. i can see it in code, but there is no way to edit anything about it. is there a way i can edit it like say menu bar? i use netbeans 7.2.1 if that is important.
ps - 是的,我试过谷歌搜索,只发现 this,但它没有帮助......
ps - yes, i tried googling and found only this, but it is not helping...
推荐答案
好吧,我自己想通了.
- 打开 windows ->导航->navigator 它将显示一个导航器窗口,其中包含当前在 jframe 上的所有组件.
- 在该导航器窗口中,然后单击other components.
- 其中将列出所有非可视组件,包括 jpopopmenu.
- 通过单击这些组件中的任何一个,可以编辑它们的属性.
- 可以通过双击直观地编辑弹出菜单.然后它会弹出可视菜单生成器.
- open windows -> navigation -> navigator it will show a navigator window with all components currently on jframe.
- in that navigator window then click other components.
- in there all non visual components including jpopopmenu will be listed.
- by clicking on any of these components it is possible to edit their properties.
- editing the popup menu visually is possible by double clicking on it. it will then bring up visual menu builder.