以编程方式编写gui,或使用高级gui编辑器(Java Swing)? [英] Write gui programatically, or using an advanced gui editor (Java Swing)?
问题描述
我打算编写一个基于Swing的应用程序(使用Netbeans 6.8)。
I am planning to write a Swing-based application (using Netbeans 6.8).
似乎Netbeans有一个非常高级的GUI编辑器......我还有我对它生成的代码有疑问。另外我不喜欢代码部分被锁定的事实(我仍然理解需要)。
It seems that Netbeans has a very advanced GUI Editor... Still I have my doubts regarding the code generated by it. Additionally I don't like the fact the part of the code is locked (still I understand the need).
有人使用过Netbeans GUI Editor吗?
它是否缩放?
Has anybody used Netbeans GUI Editor with success ? Does it "scale" ?
推荐答案
是的,NetBeans GUI构建器是最好的之一。我对处理臭名昭着的 GridBagLayout
的表现印象特别深刻。
Yes, the NetBeans GUI builder is one of the finest around. I was particularly impressed with how well it handles the infamous GridBagLayout
.
Borland JBuilder在我的经历中表现最好往返GUI编辑器;如果我没记错的话,它会产生没有锁定区域的代码,并且通常会继续使用您手动调整的GUI代码继续正常工作。
Borland JBuilder was in my experience the very best round-trip GUI editor; if I remember correctly, it produced code without "locked areas" and would usually continue to work gracefully with GUI code that you had manually tweaked.
仍然,我还没有找到一个Java Swing GUI编辑器,它不会偶尔阻塞复杂的布局,即进入进一步编辑不再可行的状态和/或需要一些备份或修复。
Still, I have yet to find a Java Swing GUI editor that doesn't occasionally choke on a complex layout, i.e. enter a state where further editing is no longer feasible and/or requires some backing up or fixing.
因此,我更喜欢手工编写所有GUI。 JavaSpecialists 的Heinz Kabutz告诉我他的GUI编辑器是 vim 。但是,我承认我的其他大多数朋友和同事都认为我这样做很疯狂。
Thus, I prefer to hand-code all my GUIs. Heinz Kabutz of JavaSpecialists tells me his GUI editor is vim. However, I admit that most of my other friends and colleagues consider me crazy for doing this.
这篇关于以编程方式编写gui,或使用高级gui编辑器(Java Swing)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!