Java IntelliJ Idea不显示GUI
出于某种原因,我的GUI不再显示在.form文件中,而是所有的硬代码,如: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
<?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>