Netbeans使用可视化编辑器添加弹出菜单 [英] Netbeans add popup menu with visual editor

查看:681
本文介绍了Netbeans使用可视化编辑器添加弹出菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在 JFrame 中添加一个弹出菜单,但当我删除那个组件时,它就会消失。我可以在代码中看到它,但没有办法编辑它的任何内容。有没有办法可以编辑它,如说菜单栏
我使用 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 - 是的,我试过谷歌搜索并且发现只有这个,但它没有帮助...

PS - Yes, I tried googling and found only this, but it is not helping...

推荐答案

好的,我自己想出来了。

Okay, I figured it out by myself.


  1. 打开 Windows - >导航 - >导航器它将显示一个导航窗口,其中包含当前在jFrame上的所有组件。

  2. 在该导航器窗口中,然后单击其他组件

  3. 在那里将列出所有非可视组件,包括 jPopopMenu

  4. 通过单击任何这些组件,可以编辑它们的属性。

  5. 可以通过双击直观地编辑弹出菜单在上面。然后它会调出可视化菜单构建器。

  1. Open Windows -> Navigation -> Navigator it will show a navigator window with all components currently on jFrame.
  2. In that navigator window then click Other components.
  3. In there all non visual components including jPopopMenu will be listed.
  4. By clicking on any of these components it is possible to edit their properties.
  5. Editing the popup menu visually is possible by double clicking on it. It will then bring up visual menu builder.

这篇关于Netbeans使用可视化编辑器添加弹出菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆