简体   繁体   English

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

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

I was developing a java application in which i created a new GUI Form and used the graphical interface to design the form but after everything was working and i quit Intellij idea 14 and then came back the GUI was gone and the form was only editable and viewed in XML . 我正在开发一个Java应用程序,在其中创建了一个新的GUI Form并使用图形界面设计了表单,但是在一切正常之后,我退出了Intellij idea 14,然后又回来了,GUI消失了,该表单只能进行编辑和查看在XML Why? 为什么? How can i get back the GUI designer with drag and drop form building? 如何通过拖放表单构建来找回GUI设计器?

我修复了它,关闭了XML视图和idea 14本身,然后重新打开了所有有效的工具。

To create a new gui form from a file template 从文件模板创建新的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.

To create a file template from a gui form 从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.

To create a new gui form 创建一个新的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.

You can get more info from the link below 您可以从下面的链接获取更多信息

https://www.jetbrains.com/idea/help/creating-and-opening-forms.html 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