What is the best and powerful tool for building swing interface? What tool do you use for swing? Why?
-
1I used to use gui builders a few years ago, but only for fun or protoyping. They was very limited - changing generated code causes that designer didn't work anymore, and generated code was very excessive. What I miss in answers is some detailed information about pros and cons of todays these tools and why to use them. – cetnar Jan 04 '10 at 14:45
-
Thx. Nice opinion. I've read more about this there http://stackoverflow.com/questions/623692/handcode-gui-or-use-gui-designer-tool – Max Jan 04 '10 at 14:58
12 Answers
NetBeans Matisse (comes bundled with NetBeans) is good and powerful.
This eclipse plugin seems fresh as well, but I haven't tried it.

- 588,226
- 146
- 1,060
- 1,140
-
1
-
Though I agree with the fact that NetBeans is good at GUI building, I'm a bit uncertain on the future of Sun NetBeans now Sun has been taken over by Oracle, which has it's own Java IDE. – extraneon Jan 04 '10 at 14:04
-
2@zedoo - I've used it in a big project and found no major drawbacks. explain exactly about your experience? @extraneon - That is too distant and too unrelated to whether the tools works good or not. Even if Oracles decides tomorrow that it stops developing everying Sun's, including Java, the tool will still be a good one. – Bozho Jan 04 '10 at 14:33
-
@Bozho - the major drawback of Matisse is that it relies on proprietary metadata, and locked regions. Once you decide to use it, you're bound to it. – zedoo Jan 04 '10 at 19:46
-
that's a fair point, but if a project starts using one technology / tool, and at half the time decides to switch, there is something wrong with the developers, not the technology / tool – Bozho Jan 04 '10 at 22:10
Eclipse is my IDE of choice. You can download Eclipse Visual Editor Project(VEP) from here. take a look at this tutorial.
The Eclipse Visual Editor project is a vendor-neutral, open development platform supplying frameworks for creating GUI builders, and exemplary, extensible tool implementations for Swing/JFC and SWT/RCP.
if you want some compression between Eclipse's VEP and NetBeans' Matisse, take a look at this and this.

- 2,525
- 3
- 30
- 54
-
I may have missed something but the comparison links are almost exclusively about swt vs. swing and not about gui builders (VEP can generate swing code). A short summary of both: first swt is good, VEP is no contest for Matisse, second swt sucks --> VEP sucks?? – josefx Jan 08 '10 at 12:01
Netbeans comes with a nice GUI builder, look here: http://java.sun.com/developer/technicalArticles/tools/nb_guibuilder/

- 8,023
- 5
- 37
- 52
The Netbeans builder can be quite nice, but it does build a lot of code for some simple tasks. So over time I have gone back to coding by hand, it can save you a lot of time in the long run!

- 763
- 3
- 9
- 18
-
Code generation has always had that problem. But I don't think writing it manually will save time - I've done a big project with Matisse and it was easy and smooth. – Bozho Jan 04 '10 at 11:09
Look at these:

- 10,562
- 12
- 44
- 55
-
WindowBuilder is now free and part of Google Java Developers Tools, see http://code.google.com/javadevtools/ – Roalt Nov 11 '10 at 07:24
I have written a Qt-style wrapper around GridBagLayout and I handcode my GUIs using it.
Visual GUI builders certainly provide more flexibility but that comes at the cost of reduced readability of the code. However I do use NetBeans Matisse when I have some quick and dirty job at hand. ;)
Anyway...
If you are interested in handcoding GUIs at all, then you might also like to have a look at MigLayout. I have never tried it though.

- 90,905
- 62
- 285
- 365
JFormDesigner is a nice visual designer. It supports lots of open source and built-in swing Layout, it has a plugin support for Eclipse,IntelliJ and also can be used external designer.I have used it as an IntelliJ plugin in a multi-year big swing project with no problem.

- 10,747
- 7
- 34
- 39
I prefer coding by hand with GridBagLayout, but if I had to use a GUI-Builder I would use NetBeans.

- 89,107
- 111
- 320
- 448
Abeille Forms is pretty good. It's based on JGoodies FormLayout. With Abeille you can layout your components visuals and access and/or replace the component with a richer component at runtime.

- 71
- 1