6

Swing provides the basic building blocks for any GUI application but what about a higher level take on building GUI applications?

I'm not asking about the many arbitrary libraries that provide yet more wizzy variants on various visual components.

I'm talking about the missing pieces that everyone ends up building themselves whenever they create anything other than a trivial GUI application.

I.e. the framework that the application specific logic builds on.

E.g. handling data binding, application lifecycle issues or supporting common things like building forms.

If we were talking about persistence you could say that anyone can code up their own persistence layer using the javax.sql or java.io classes - however most people would rather use something like Hibernate.

So, just as someone asking about persistence libraries probably isn't looking for variants on ObjectOutputStream, I am not looking for variants on some JComponent subclass or other.

I think this is a fair Stackoverflow question as, unlike areas like persistence, a clear consensus on the answer is not easy to determine using Google.

Rather than a grab bag of random libraries perhaps people could answer in terms of what GUI issues are not immediately addressed by Swing and what libraries they feel best fill these gap?

I asked a similar question to this last week and it was closed - I've tried to phrase this such that this won't also be closed. If you feel inclined to close it perhaps you might consider making it community wiki instead?

1
  • I can't vote to close or not, but I agree that it's an interesting and worthwhile question, wherever it's supposed to belong. Feb 2, 2011 at 18:53

4 Answers 4

4

Here are some essential libraries:

JGoodies - http://www.jgoodies.com/. This provides some nice layout tools (FormLayout) as well as common builders and databinding tools

SwingLabs - http://www.swinglabs.org/. This provides many common components you likely may need to use that are not part of standard swing.

Swing Application Framework - https://appframework.dev.java.net/ (already mentioned by jluzwick)

Groovy SwingBuilder - http://groovy.codehaus.org/Swing+Builder. This provides for easier building of GUIs by using a logical, hierarchical scripting-like language for building GUIs. It also has native support for some databinding.

1
3

Could you be referring to something like this?

https://appframework.dev.java.net/

This was integrated with Netbeans at one point and I don't think the development has continued, but this framework greatly helped me in creating a much more involved application with java.

EDIT:

It seems these projects are derivations of the former I mentioned that are actively in development:

http://kenai.com/projects/bsaf/pages/Home

http://kenai.com/projects/guts/pages/Home

2
  • Even though this answer got the most votes I'm going to accept Jeff's answer. I was aware of the Swing Application Framework (and the unfortunate fact that like a lot of JDK7 related stuff that it's now become moribund). Irrespective of its current status I always got that java.logging feeling from it, i.e. one suspected that it wasn't necessarily a step forward on what was already available in non-JCP blessed projects (though eliminating dependencies on things outside the standard class library is always a big win in itself and worth some costs). Feb 4, 2011 at 10:04
  • No worries. His answer had more content and options so I understand why you chose his :)
    – jluzwick
    Feb 4, 2011 at 17:58
2

JGoodies Bindings is great if you want to have a well-architected program.

NetBeans Platform (RCP) I really want to try. It's really the only viable Swing frameworks because ...

Swing Application Framework is very lacking and is not actively in development anymore.

MiGLayout is my favorite layout manager for cases where I used to use GridBagLayout (long time ago) and JGoodies form layout. Also, I dislike GroupLayout.

1

Have look at the NetBeans Platform (Swing based RCP)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.