Eclipse 窗口生成器 VS Netbeans GUI 生成器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13150484/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse Window Builder VS Netbeans GUI Builder
提问by Cheung
I would start a J2SE projects for abuntu OS. I try both Netbeans GUI builder and Eclipse windowbuilder.
我将为 abuntu OS 启动一个 J2SE 项目。我尝试了 Netbeans GUI builder 和 Eclipse windowbuilder。
Both of them are good, drag&drop, double-click to create event-handler like VisualStudio.
两者都很好,拖放,双击创建像VisualStudio这样的事件处理程序。
However i have do a research on Netbeans, someonesaid:
但是我对Netbeans进行了研究,有人说:
The second major flaw of Matisse is that it just isn't good enough, you place the components on the grid, Matisse then creates an XML with the component's attributes, then generates the java code for the components on the grid. Seems cool, but then you decide you want to add a button somewhere in the form or resize a component - this procedure can cause all of the gui to get mixed up throwing the adjacent components to different places - fixing it can be a pain in the neck. Even if you managed to place all of the components where they should be but manually changed some of the generated netbeans code - you are in a BIG problem, a problem you might not manage to get out of unless starting all over.
Matisse 的第二个主要缺陷是它不够好,您将组件放在网格上,然后 Matisse 创建带有组件属性的 XML,然后为网格上的组件生成 java 代码。看起来很酷,但随后您决定要在表单中的某处添加一个按钮或调整组件的大小 - 此过程可能会导致所有 gui 混淆,将相邻的组件扔到不同的位置 - 修复它可能会很痛苦脖子。即使您设法将所有组件放置在它们应该放置的位置,但手动更改了一些生成的 netbeans 代码 - 您遇到了一个大问题,除非重新开始,否则您可能无法摆脱这个问题。
Is that bug still exist on latest netbeans? What is Pros. and Cons. between Netbeans GUI builder and Eclipse Windowbuilder?
该错误是否仍然存在于最新的 netbeans 上?什么是优点。和缺点。Netbeans GUI builder 和 Eclipse Windowbuilder 之间的关系?
采纳答案by ollo
Im using NetBeans since 6.x and never had such problems. Resizing components, adding some new, even working on the generated code etc. is realy easy and had no problem so far. Moreover NB has a visual debugger and an improved GridBagLayout customizer (both since 7.1).
我从 6.x 开始使用 NetBeans,从来没有遇到过这样的问题。调整组件的大小,添加一些新的,甚至处理生成的代码等都非常简单,到目前为止都没有问题。此外,NB 具有可视化调试器和改进的 GridBagLayout 定制器(均自 7.1 起)。
Didn't use Eclipse Windowbuilder so far, but i guess its capable too. Everyone has it's own criteria for a gui builder. Btw. the author of this article seem very eclipse-focused ("on the best IDE out there - eclipse")
到目前为止还没有使用 Eclipse Windowbuilder,但我想它也有能力。每个人都有自己的 gui 构建器标准。顺便提一句。这篇文章的作者似乎非常关注日食(“关于最好的 IDE - 日食”)
I'm sorry i cant give you an answer like "pro / cons of A, pro / cons of B" - as i said i've never used Eclipse Windowbuilder before. And for me there's no need to do so, i can build a gui with netbeans without problems / very easy / fast (even better than with Visual Studio). For my point of view everything works like i want it :-)
很抱歉,我无法给您诸如“A 的优点/缺点,B 的优点/缺点”之类的答案-正如我所说的,我以前从未使用过 Eclipse Windowbuilder。对我来说,没有必要这样做,我可以使用 netbeans 毫无问题地/非常容易/快速地构建 gui(甚至比使用 Visual Studio 还要好)。在我看来,一切都像我想要的那样工作:-)
If you used both, maybe there are things you prefer or dislike on one IDE, but the other can do better.
如果您同时使用两者,也许您喜欢或不喜欢在一个 IDE 上的某些东西,但另一个可以做得更好。
回答by mikeyGlitz
Personally, while WindowBuilder is a pretty powerful tool to use within Eclipse, I find it more clunky (and quite honestly, prefer to write Swing GUIs by hand if this were the only optin)
就我个人而言,虽然 WindowBuilder 是一个在 Eclipse 中使用的非常强大的工具,但我发现它更笨拙(老实说,如果这是唯一的选择,我更喜欢手工编写 Swing GUI)
Matisse is a far better option because of the Grid editors like someone mentioned previously, also I prefer the way Matisse handles event handlers over WindowBuilder. Another thing Matisse does well is that it encorporates more properties into GUI element settings where WindowBuilder goes over a very small list of changeable features (leaving you to dive through a mess of auto-generated code to change a simple property).
Matisse 是一个更好的选择,因为前面提到的网格编辑器,我更喜欢 Matisse 处理事件处理程序的方式而不是 WindowBuilder。Matisse 做得好的另一件事是它将更多属性合并到 GUI 元素设置中,其中 WindowBuilder 会检查一个非常小的可更改功能列表(让您深入了解一堆自动生成的代码以更改简单的属性)。
Eclipse does have a version of matisse available, though the plugin is not for free (look up myeclipse).
Eclipse 确实有一个可用的 matisse 版本,尽管该插件不是免费的(查找 myeclipse)。
回答by Beginner Java Developer
I used both Eclipse and Netbeans,
我同时使用了 Eclipse 和 Netbeans,
Eclipse -WindowBuilder is a powerful tool, easy to modifying it. But causes more code problems. Long time after you will get Spagetti-Codes to get solve problem.When it get problem you cant open Desing layer.
Eclipse -WindowBuilder 是一个功能强大的工具,易于修改。但是会导致更多的代码问题。很长时间后,您将获得 Spagetti-Codes 以解决问题。当出现问题时,您无法打开 Desing 层。
Netbeans generates codes much easy, and you can change it but more harder, sometimes you can't. But i dont get any (only a few, my mistakes) any code problems...or etc., if you get a problem about a component; you can too easy to get Default Settings any time.
Netbeans 生成代码非常容易,您可以更改它但更难,有时您不能。但是我没有遇到任何(只有少数,我的错误)任何代码问题……或者等等,如果您遇到有关组件的问题;您可以很容易地随时获得默认设置。
Note: THAT IS ONLY MY IDEA!
注意:这只是我的想法!