简体   繁体   English

看不到Intellij Idea面板

[英]Cannot see Intellij Idea Palette

I got a project which is written by Swing. 我有一个由Swing编写的项目。

I import that project into Intellij Idea 12. 我将该项目导入Intellij Idea 12。

But when I check View -> Tool Windows -> Palette option is disabled. 但是,当我选中“查看”->“工具窗口”->“调色板”选项时,该选项被禁用。

I am pretty new at Java Swing. 我在Java Swing中是新手。 (Actually first) I need to add Text Boxes, JPanel or something to that project. (实际上首先)我需要在该项目中添加文本框,JPanel或其他内容。 And I need to make that as visual by using a GUI tool. 而且我需要使用GUI工具将其显示为可视化。 But it is disabled? 但是被禁用了吗?

Thanks 谢谢

The Palette Tool Window is only visible when a GUI Designer form is open in the editor. 仅当在编辑器中打开GUI设计器表单时,“调色板工具窗口”才可见。 It is not available (ie is not enabled) for standard Java classes, even if that class is or extends a Swing component. 对于标准Java类,该类不可用(即未启用),即使该类是或扩展了Swing组件。 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". 要创建表单,请从新菜单中(例如,在项目窗口或导航栏中右键单击或单击某个程序包上的Alt + 插入 ,或键入Ctrl Alt + Insert在当前程序包中创建新元素),选择“ GUI表单”或“对话框”。

You can read more about the Gui Designer in the help guide. 您可以在帮助指南中了解有关Gui Designer的更多信息。

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

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