簡體   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