Search code examples
javaswingswingbuilder

SwingBuilder like GUI syntax for Java?


Is there a library that makes it possible to write Swing based GUIs similar to the manner done by SwingBuilder in Groovy?

I am hoping to develop a Java GUI application without embedding Groovy or another complete programming language in Java, and I find the standard Java syntax rather tedious.


Solution

  • I went down this path at one point, then I found MiGLayout - unless I'm using a split pane, I can generally lay out each of my views in a single panel, with a minimum of hassle. There is a tad of a learning curve, but once you are over the hump, you can knock out a really nice looking GUI in almost no time.

    The whole paradigm of nesting panels inside other panels isn't clean for a lot of designs - you wind up fighting the layout manager.