Netbeans add popup menu with visual editor(Netbeans 添加带有可视化编辑器的弹出菜单)
问题描述
我需要将 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 -> Navigatorit 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 
jPopopMenuwill 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 clickingon it. It will then bring up visual menu builder. 
这篇关于Netbeans 添加带有可视化编辑器的弹出菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Netbeans 添加带有可视化编辑器的弹出菜单
				
        
 
            
        - Jersey REST 客户端:发布多部分数据 2022-01-01
 - 如何使用WebFilter实现授权头检查 2022-01-01
 - 从 finally 块返回时 Java 的奇怪行为 2022-01-01
 - Java包名称中单词分隔符的约定是什么? 2022-01-01
 - 将log4j 1.2配置转换为log4j 2配置 2022-01-01
 - Safepoint+stats 日志,输出 JDK12 中没有 vmop 操作 2022-01-01
 - Eclipse 插件更新错误日志在哪里? 2022-01-01
 - C++ 和 Java 进程之间的共享内存 2022-01-01
 - Spring Boot连接到使用仲裁器运行的MongoDB副本集 2022-01-01
 - value & 是什么意思?0xff 在 Java 中做什么? 2022-01-01
 
						
						
						
						
						