gpt4 book ai didi

java - IntelliJ Idea 不显示 GUI

转载 作者:行者123 更新时间:2023-12-01 18:47:39 26 4
gpt4 key购买 nike

由于某种原因,我的 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>

关于java - IntelliJ Idea 不显示 GUI,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59797880/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com