Netbeans add popup menu with visual editor

五迷三道 提交于 2019-12-21 20:59:54

问题


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 - Yes, I tried googling and found only this, but it is not helping...


回答1:


Okay, I figured it out by myself.

  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.


来源:https://stackoverflow.com/questions/20004179/netbeans-add-popup-menu-with-visual-editor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!