Java Swing 的 IDE

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/26458/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 07:18:36  来源:igfitidea点击:

IDE for Swing

javaswingide

提问by qwerty

Is there any IDE that simplifies creating Swing applications (ideally something along the lines of Visual Studio)

是否有任何 IDE 可以简化创建 Swing 应用程序的过程(最好是类似于 Visual Studio 的东西)

回答by Brian Warshaw

Netbeans has some GUI-building support, and it's one of the most popular Java IDEs on the market. Give it a look.

Netbeans 有一些 GUI 构建支持,它是市场上最流行的 Java IDE 之一。看看吧。

回答by pauldoo

回答by Knobloch

I used to use MyEclipse quite a bit. It had a decent IDE for making Swing forms and such. I assume it has improved in the past year - they seem to add features in gobs and heaps, quite often.

我曾经经常使用 MyEclipse。它有一个不错的 IDE,用于制作 Swing 表单等。我认为它在过去的一年中有所改善 - 他们似乎经常在 gobs 和 heaps 中添加功能。

http://www.myeclipseide.com/

http://www.myeclipseide.com/

回答by Telcontar

The latest version of NetBeans include a very nice and simple visual editor for Swing called Matisse

最新版本的 NetBeans 包括一个非常漂亮且简单的 Swing 可视化编辑器,称为 Matisse

Matisse

马蒂斯

回答by Frank Krueger

I'm a big fan of JetBrains, and when it comes to Java, IntelliJis the best IDE I have used.

我是 JetBrains 的忠实粉丝,谈到 Java,IntelliJ是我用过的最好的 IDE。

For Swing, they have a fully interactive UI builder. And, for actual coding, their intellisense can't be beat.

对于 Swing,他们有一个完全交互式的 UI 构建器。而且,对于实际编码,他们的智能感知是无与伦比的。

回答by Al.

Like others have mentioned, NetBeans' visual editor is pretty good, but it's based pretty heavily on the Swing Application Framework, so you'd need to get an understanding of how it works to properly use it (although you don't need to dig in to just test things).

就像其他人提到的那样,NetBeans 的可视化编辑器非常好,但它很大程度上基于Swing 应用程序框架,因此您需要了解它的工作原理才能正确使用它(尽管您不需要深入研究在只是测试的东西)。

Other than that there are also:

除此之外还有:

Personally I've used NetBeans' and IDEA's visual editors. Both are nice, but I thought NetBeans had a leg up, because it doesn't use any proprietary way of saving the GUI structure and instead does something similar to what Visual Studio does - auto-generating the code that you can then add to. IDEA stores the information in a separate file which means you have to use IDEA to edit the layout visually later.

我个人使用过 NetBeans 和 IDEA 的可视化编辑器。两者都很好,但我认为 NetBeans 有优势,因为它不使用任何专有方式来保存 GUI 结构,而是执行类似于 Visual Studio 所做的事情 - 自动生成您可以添加的代码。IDEA 将信息存储在一个单独的文件中,这意味着您以后必须使用 IDEA 来直观地编辑布局。

I have not used Eclipse's Visual Editor.

我没有使用过 Eclipse 的可视化编辑器。

My vote is for NetBeans' visual editor. I think it satisfies what most people are looking for in a visual editor and leaves it flexible enough to plug the holes manually through code without affecting the visual editor (so you can switch back and forth between code and design views without breaking either).

我投票支持 NetBeans 的可视化编辑器。我认为它满足了大多数人在可视化编辑器中寻找的东西,并使其足够灵活,可以通过代码手动插入漏洞而不影响可视化编辑器(因此您可以在代码和设计视图之间来回切换而不会中断)。

回答by zvikico

Try Instantiations' Windows Builder Pro. It includes Swing Designer, which is a Swing UI builder. It is based on Eclipse.

试试InstantiationsWindows Builder Pro。它包括Swing Designer,它是一个 Swing UI 构建器。它基于 Eclipse。

回答by alves

For me, the best visual Swing editor is JFormDesigner, which you can run standalone or as a plugin for IntelliJ IDEA and Eclipse.

对我来说,最好的可视化 Swing 编辑器是JFormDesigner,它可以独立运行,也可以作为 IntelliJ IDEA 和 Eclipse 的插件运行。

It generates proper (actually readable) source code, it's very ergonomic and intuitive and, above all, very extensible. That last point is really important, because if you want to build a decent Swing application, you'll have to extend the base components or use some third-party libraries and it must be easyto integrate those in the visual editor.

它生成正确的(实际上可读的)源代码,它非常符合人体工程学和直观,最重要的是,非常可扩展。最后一点非常重要,因为如果您想构建一个体面的 Swing 应用程序,您必须扩展基本组件或使用一些第三方库,并且必须很容易将它们集成到可视化编辑器中。

It's not free, but it's a bargain for the power you get (129 EUR / 159 USD). I've been using it for a few years and love it.

它不是免费的,但对于您所获得的功能(129 欧元 / 159 美元)来说是很划算的。我已经使用它几年了并且喜欢它。

回答by Laurent K

As I'm using Eclipse, I use the Visual Editor plugin. It generates clean source code, with good patterns and easy to patch/modify/extend. Unfortunately, it is not very stable. But it's worth trying.

当我使用 Eclipse 时,我使用 Visual Editor 插件。它生成干净的源代码,具有良好的模式并且易于修补/修改/扩展。不幸的是,它不是很稳定。但值得一试。

回答by jwarzech

I have switched between several IDEs and the one that I believe has the best GUI builder in terms of use and performance would have to be NetBeans.

我已经在几个 IDE 之间切换,我认为在使用和性能方面拥有最好的 GUI 构建器的那个必须是 NetBeans。