【问题标题】:Opening .form file in GUI designer using intellij使用 intellij 在 GUI 设计器中打开 .form 文件
【发布时间】:2015-04-30 21:36:38
【问题描述】:

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

【问题讨论】:

    标签: java user-interface intellij-idea


    【解决方案1】:

    我修复了它关闭 XML 视图和 idea 14 本身并重新打开它的所有工作。

    【讨论】:

    • 是的,这很奇怪。也发生在我身上。通过关闭 xml 视图中的 .form 来修复。
    【解决方案2】:

    从文件模板创建新的 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

    【讨论】:

      猜你喜欢
      • 2013-02-27
      • 2023-03-07
      • 1970-01-01
      • 1970-01-01
      • 2011-09-13
      • 1970-01-01
      • 2012-02-06
      • 1970-01-01
      • 2016-08-15
      相关资源
      最近更新 更多