java的“xmlns=”http://www.intellij.com/uidesigner/form/“`由Intellij以.xml格式标记为红色
我只是在Intellij中创建了名为TestUI的GUI表单。然后是TestUI。表单和TestUI。java是由IDE创建的,如下所示
TestUI。爪哇
public class TestUI {
}
TestUI。形式
<?xml version="1.0" encoding="UTF-8"?>
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="TestUI">
<grid id="27dc6" row-count="1" column-count="1" layout-manager="GridLayoutManager">
<margin top="0" left="0" bottom="0" right="0"/>
<constraints>
<xy x="20" y="20" width="500" height="400"/>
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
</constraints>
<properties/>
<border type="none"/>
<children/>
</grid>
</form>
奇怪的是,java文件是空的,表单文件不能作为图形界面打开。而且xmlns="http://www.intellij.com/uidesigner/form/"
被IDE标记为红色。你能帮助我吗?如何以图形界面打开表单文件
共 (0) 个答案