简体   繁体   中英

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. When I create a new GUI form the designer works fine for some time. 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. 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. 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;
(2) Going to the button's Component Properties panel, "Text" property,clicking on the lamp icon and providing a mnemonic for the text. (image berllow) 在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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