繁体   English   中英

使用intellij在GUI设计器中打开.form文件

[英]Opening .form file in GUI designer using intellij

我正在开发一个Java应用程序,在其中创建了一个新的GUI Form并使用图形界面设计了表单,但是在一切正常之后,我退出了Intellij idea 14,然后又回来了,GUI消失了,该表单只能进行编辑和查看在XML 为什么? 如何通过拖放表单构建来找回GUI设计器?

我修复了它,关闭了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

暂无
暂无

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

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