tags:

views:

131

answers:

5

Hi everyone,

I'm trying to learn swing and I was thinking you guys may know a really good swing based open source application that I could study and inspire from. I'm looking for something that has a real world use, not just some concepts explained (like examples in most books and tutorials).

Thank you!

+2  A: 

Maybe you could have a look at the open source NetBeans IDE. It is huge, but it is using Swing intensively and is well designed and documented. Moreover, it is also a generic platform to build modular GUI applications.

Gabriel Cuvillier
I'm downloading now. I've been using NB for a while, but never thought of looking at its source code :D. Thanks for the suggestion.
Bogdan
A: 

You could take a look at the jgoodies examples. They are not plain swing though, and I don't know the license.

extraneon
Well, applications from that link don't seem to have any source code available...
Bogdan
+1  A: 

The Swing Tutorial is filled with excellent code, and the Swing code itself is available for study in most IDEs.

trashgod
Yes, I know about Swing Tutorial. It is excellent for learning different topics about the framework. What I'm looking for is seeing how ppl use swing in real life! How do they deal with threading, database access, how are they organizing their increasing code base - stuff like that.
Bogdan
+3  A: 

In the same spirit as the answer suggesting to check NetBeans, I would suggest to get the sources of IntelliJ IDEA Community Edition and IntelliJ Platform from their git repository. At some point, IDEA was IMO a state of the art Swing application (fast, responsive, not ugly, nice user experience, etc).

Pascal Thivent
Thanks Pascal. I'll take a look at IDEA too. Although I'm a little overwhelmed with the size of these gigantic products (NB included) :)
Bogdan
@Bogdan While projects like NetBeans and IntelliJ IDEA do fit as answers to this question, I agree they might not be simple and easy to understand.
Pascal Thivent
+2  A: 

It's certainly less well-known than some of the other projects mentioned here, but have a look at GoGrinder. The code is well written and documented.

It might also be a good idea to look for something that you'll actually use. I find it easier to read the source of applications that I'm familiar with from using them.

Bill the Lizard
Nice suggestion Bill. This project I might actually understand! :)
Bogdan
GoGrinder is GPL so you cannot reuse the code unless your application is GPL tool
Anthony
@Anthony: So? He's asking for code to look at and learn from. You're free to use it for that.
Bill the Lizard
Yes but if he sees an useful class/method he cannot reuse the code.
Anthony
@Anthony: GoGrinder isn't a library. It's a swing application for learning Go problems. Bogdan is trying to learn swing, not looking for libraries of useful code to reuse.
Bill the Lizard