带有构建器的免费基于 XML 的 java gui 语言 [英] Free XML based java gui language with builder
问题描述
是否有免费的体面的 Java GUI 描述符语言(可能基于 XML),它具有类似 Glade(WYSIWYG)的 GUI 构建器?
Is there a free decent java GUI descriptor language (probably XML based), which has a Glade-like (WYSIWYG) GUI builder?
推荐答案
Netbeans IDE.每当您使用其 GUI 编辑器时,它都会将 GUI 以 XML 格式存储在 *.form
文件中.
Netbeans IDE. Whenever you use its GUI editor, it stores the GUI in XML, in a *.form
file.
例如,如果您创建了一个扩展某些 Swing 组件或窗口的类 com.some.package.MyForm
,请查找此文件 $SRCDIR/com/some/package/MyForm.java
和 $SRCDIR/com/some/package/MyForm.form
.
For example if your create a class com.some.package.MyForm
which extends some Swing component or window, look for this file $SRCDIR/com/some/package/MyForm.java
and $SRCDIR/com/some/package/MyForm.form
.
前者是实际编译的 Java 类.后者是 Netbeans 用来以 XML 格式存储 GUI 的文件.这是 netbeans 用来生成自动生成代码的代码,这些代码进入代码折叠以初始化 GUI.
The former is the actual Java class that gets compiled. The latter is a file that Netbeans uses to store the GUI in XML format. This is what netbeans uses to generate the auto-gen'd code that goes in the code fold to initiliase the GUI.
HTH
我承认 Netbeans IDE 可能不是最好的,我个人使用它只是因为它已经内置在我使用的 IDE 中.对我来说,它完成了工作,有时我可能不得不在代码中手动应用调整以获得我想要的.这是一个简洁、基于 XML、Java GUI、所见即所得的编辑器.
I do acknowledge that the Netbeans IDE probably isn't the best one out there, and I personally use it only because it's already built into the IDE that I use anyway. For me it gets the job done, and I may sometimes have to manually apply tweaks in the code to get what I want. It's a no-frills, XML-based, Java GUI, WYSIWYG editor.
这篇关于带有构建器的免费基于 XML 的 java gui 语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!