简体   繁体   中英

Cannot see Intellij Idea Palette

I got a project which is written by Swing.

I import that project into Intellij Idea 12.

But when I check View -> Tool Windows -> Palette option is disabled.

I am pretty new at Java Swing. (Actually first) I need to add Text Boxes, JPanel or something to that project. And I need to make that as visual by using a GUI tool. But it is disabled?

Thanks

The Palette Tool Window is only visible when a GUI Designer form is open in the editor. It is not available (ie is not enabled) for standard Java classes, even if that class is or extends a Swing component. To create a form, from the new menu (ie when you right click or hit Alt + Insert on a package in the project window or navigator bar, or type Ctrl Alt + Insert to create a new element in the current package) select "GUI Form" or "Dialog".

You can read more about the Gui Designer in the help guide.

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