【发布时间】:2015-04-30 21:36:38
【问题描述】:
我正在开发一个 java 应用程序,在其中我创建了一个新的GUI Form 并使用图形界面来设计表单,但是在一切正常之后我退出 Intellij idea 14 然后回来 GUI 消失了,表单是只能在XML 中编辑和查看。
为什么?如何通过拖放表单构建找回 GUI 设计器?
【问题讨论】:
标签: java user-interface intellij-idea
我正在开发一个 java 应用程序,在其中我创建了一个新的GUI Form 并使用图形界面来设计表单,但是在一切正常之后我退出 Intellij idea 14 然后回来 GUI 消失了,表单是只能在XML 中编辑和查看。
为什么?如何通过拖放表单构建找回 GUI 设计器?
【问题讨论】:
标签: java user-interface intellij-idea
我修复了它关闭 XML 视图和 idea 14 本身并重新打开它的所有工作。
【讨论】:
从文件模板创建新的 gui 表单
In the Project tool window, right-click the package where you want to
create the new form.
On the context menu choose New. The submenu contains items for all
defined File Templates, including GUI forms.
Select the desired GUI form template on the context menu, and give
it a name when prompted.
从 gui 表单创建文件模板
Create a GUI form or open it in the GUI Designer.
On the Main menu, choose Tools | Save File as Template.
The File Templates dialog displays the source code of the form.
The extension of the new template is .form
Specify the template name, and click OK.
创建一个新的 gui 表单
On the main menu, choose File | New, as described in the section
Creating Files.
On the pop-up menu, choose GUI Form.
Specify the name of the new form, and select the layout manager.
Check the option Create bound class, and
specify the bound class name.
Click OK.
您可以从下面的链接获取更多信息
https://www.jetbrains.com/idea/help/creating-and-opening-forms.html
【讨论】: