Hacker News new | ask | show | jobs
by tomjen3 5806 days ago
I haven't seen anybody write new Swing GUIs like he did in quite some time. First of all, you don't have to declare the listeners on the form class, and you typically would create an anonymous that listens to each component.

Second, there is a library called swixml (http://www.swixml.org/) which allows you to write the GUI part of the code in a declarative manner and have the library wire the two things together.

Both makes it much less of a pita to write GUIs in Java.

1 comments

Agreed. I did quite a bit of Swing development a few years ago.

There is also Griffon (http://griffon.codehaus.org/) that is a MVC (Rails like) framework for Swing apps that uses Groovy. I haven't used it, but from what I have seen, it does make it easier to work with Swing.

I had not heard of swixml. Thanks for the pointer.