如何使用 IntelliJ 的 Swing GUI Designer 添加 JMenuBars、JMenus 和 JMenuItems?

发布于 2024-07-24 18:40:52 字数 103 浏览 1 评论 0原文

我在 IntelliJ 的 Palette 中找不到标题中指定的组件。 我注意到表单有一个 JMenuBar,但我没有看到它,而且我不知道如何访问它。 有什么方法可以直观地使用这些组件吗?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

顾忌 2024-07-31 18:40:52

目前 IntelliJ 设计器中尚不支持创建这样的菜单。 他们的官方解决方案是使用 intelliJ 的 JFormDesigner 插件。 或者当然可以手动编码。 以下是论坛讨论的链接:-

IntelliJ 线程

谢谢,
jT

Creating menus like this isn't currently available in the IntelliJ designer. Their official solution 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 thread

Thanks,
jT

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文