java 如何使用 IntelliJ 的 Swing GUI 设计器添加 JMenuBars、JMenus 和 JMenuItems?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/983398/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How can I add JMenuBars,JMenus and JMenuItems using IntelliJ's Swing GUI Designer?
提问by Geo
I can't find the components specified in the title anywhere in IntelliJ's Palette. I notice that the form has a JMenuBar, but I don't see it, and I don't know how to access it. Is there any way of using these components visually?
我在 IntelliJ 的 Palette 中的任何地方都找不到标题中指定的组件。我注意到表单有一个 JMenuBar,但我没有看到它,也不知道如何访问它。有没有办法在视觉上使用这些组件?
回答by Johnathan
Creating menus like this isn't currently available in the IntelliJ designer. Their officialsolution is to use the JFormDesigner plugin for intelliJ. Or of course to code them by hand. Here is a link to the discussion in their forums :-
IntelliJ 设计器中目前无法创建这样的菜单。他们的官方解决方案是使用 IntelliJ 的 JFormDesigner 插件。或者当然要手动编码。这是他们论坛中讨论的链接:-
Thanks, jT
谢谢,jt

