简体   繁体   English

IntelliJ GUI设计器缺少助记符

[英]IntelliJ GUI designer missing mnemonic

I've just migrated from Eclipse to JetBrains IntelliJ IDEA and I find it very annoying when it comes to using designer. 我刚刚从Eclipse迁移到JetBrains IntelliJ IDEA,并且在使用设计器时感到很烦。 When I create a new GUI form the designer works fine for some time. 当我创建新的GUI表单时,设计器可以正常工作一段时间。 Then suddenly after switching to other class or after closing and reopening IntelliJ it shows me XML code only and I have no option to switch to designer mode. 然后突然切换到其他类或关闭并重新打开IntelliJ之后,它仅显示XML代码,而我没有选择切换到设计器模式的选择。 This time I have form with three buttons and IntelliJ shows me XML with three notifications at the top "missing mnemonic: name_of_a_button" despite that I didn't use any and never wanted to. 这次我有带有三个按钮的表单,IntelliJ向我显示了在顶部的“缺少助记符:name_of_a_button”顶部带有三个通知的XML,尽管我没有使用过,也从未使用过。 By the way even if it works fine I don't have that switch at the bottom to toggle between designer and text mode. 顺便说一句,即使它工作正常,我也没有在底部的那个开关在设计器模式和文本模式之间切换。 Why is that? 这是为什么?

We have two options: 我们有两种选择:
(1) Disabling this particular inspection by clicking the icon at the right of the message; (1)通过单击消息右侧的图标来禁用此特定检查;
(2) Going to the button's Component Properties panel, "Text" property,clicking on the lamp icon and providing a mnemonic for the text. (2)转到按钮的“组件属性”面板的“文本”属性,单击灯图标并为文本提供助记符。 (image berllow) (图片下方) 在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM