Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/bash/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java IntelliJ Idea不显示GUI_Java_User Interface_Intellij Idea - Fatal编程技术网

Java IntelliJ Idea不显示GUI

Java IntelliJ Idea不显示GUI,java,user-interface,intellij-idea,Java,User Interface,Intellij Idea,出于某种原因,我的GUI不再显示在.form文件中,而是所有的硬代码,如: <?xml version="1.0" encoding="UTF-8"?> <form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="emroGUI"> <grid id="27dc6" binding="mainPanel" layout-manager="GridLayoutM

出于某种原因,我的GUI不再显示在.form文件中,而是所有的硬代码,如:

<?xml version="1.0" encoding="UTF-8"?>
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="emroGUI">
  <grid id="27dc6" binding="mainPanel" layout-manager="GridLayoutManager" row-count="11" column-count="7" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
    <margin top="0" left="0" bottom="0" right="0"/>
    <constraints>
      <xy x="20" y="20" width="742" height="400"/>
    </constraints>
    <properties/>
    <border type="none"/>

等等。
当我最初制作GUI时,我是通过“拖放”完成的,我看到了实际的GUI表单。如何取回实际表单?

您的XML内容现在格式不正确,我认为您缺少以下结束标记:

 </grid> </form>

准确的结构如下:

<?xml version="1.0" encoding="UTF-8"?>
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="emroGUI">
    <grid id="27dc6" binding="mainPanel" layout-manager="GridLayoutManager" row-count="11" column-count="7" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
        <margin top="0" left="0" bottom="0" right="0"/>
        <constraints>
            <xy x="20" y="20" width="742" height="400"/>
        </constraints>
        <properties/>
        <border type="none"/>
    </grid>
</form>