我正在开发一个java应用程序,在其中我创建了一个新的GUI Form
并使用图形界面来设计表单但是在一切正常后我退出Intellij构思14然后又回来了GUI已经消失了表单只能在XML
中编辑和查看。
为什么?如何通过拖放窗体构建来恢复GUI设计器?
答案 0 :(得分:4)
我修复了它关闭XML
视图和idea 14
本身并重新打开它所有工作。
答案 1 :(得分:0)
从文件模板
创建新的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