- <?xml version="1.0" encoding="UTF-8"?>
- <frame xsi:noNamespaceSchemaLocation="../swixml.xsd"
- size="640,280" title="Hello SWIXML World"
- defaultCloseOperation="JFrame.EXIT_ON_CLOSE"
- >
- <panel constraints="BorderLayout.CENTER">
- <label labelfor="tf" font="Georgia-BOLD-12" foreground="blue"
- text="Hello World!" />
- <textfield id="tf" columns="20" Text="Swixml" />
- <button text="Click Here" action="submit" />
- </panel>
- <panel constraints="BorderLayout.SOUTH">
- <label font="Georgia-BOLD-36" text="Clicks:" />
- <label font="Georgia-BOLD-36" id="cnt" />
- </panel>
- </frame>
xsi:noNamespaceSchemaLocation="../swixml.xsd" means that swixml.xsd is in the parent directory of this xml file in local file system
本文介绍了一个使用 SWIXML 创建简单图形用户界面的例子。该界面包含一个标签、文本框和按钮,通过点击按钮可以触发特定操作。此外,还解释了如何定位相关模式文件。
4万+

被折叠的 条评论
为什么被折叠?



