News for hackers. Stuff that matters.
Re:Clojure Desktop Applications with Swing by parfe on Wednesday December 14, 2011 @10:21AM (#3352120)
I spent a couple years on a Java Swing project and hated every minute. Karsten Lentzsch provided the only saving grace with the JGoodies libraries and seesaw supports the JGoodies Forms.

I just started writing some Clojure in my free time and I hadn't looked into GUI toolkits yet, but this definitely provides a great jump start. Bringing enlive's selector style to Swing widgets will make life livable again.

Re:Clojure Desktop Applications with Swing by VMG on Wednesday December 14, 2011 @10:48AM (#3352231)
One should add MigLayout to the list of painkillers

http://www.miglayout.com/

Re:Clojure Desktop Applications with Swing by salzo on Wednesday December 14, 2011 @11:19AM (#3352374)
I think if you have to work with Swing, you definitely have to go with the Netbeans Swing GUI Builder. I have worked in some Swing projects and it has been a joy to use. It comes out of the box with the IDE.
Re:Clojure Desktop Applications with Swing by daveray on Wednesday December 14, 2011 @09:29PM (#3354784)
Among other things, Seesaw 1.3 will hopefully have friendlier support for pulling in UIs laid out with UI builders (NetBeans, the Google one in Eclipse, etc).
Re:Clojure Desktop Applications with Swing by daveray on Wednesday December 14, 2011 @12:01PM (#3352548)
If you want to get a feel for the Seesaw API, I recently wrote an interactive tutorial: https://gist.github.com/1441520
Re:Clojure Desktop Applications with Swing by bwanab on Wednesday December 14, 2011 @12:39PM (#3352727)
I walked through it last weekend. Very good tutorial. Seesaw will definitely take much of the pain out of swing development.
Re:Clojure Desktop Applications with Swing by raju on Wednesday December 14, 2011 @11:16AM (#3352366)
There was another article on HN recently featuring Clarity (not seesaw)

http://skillsmatter.com/podcast/scala/lightening-talk-clarit...

Edit- Found the HN discussion - http://news.ycombinator.com/item?id=3303352

Re:Clojure Desktop Applications with Swing by jurre on Wednesday December 14, 2011 @10:36AM (#3352178)
I cringe every time I have to make a Swing GUI for Java projects at my uni. It might just be me, but I can never get them to look half decent.
Re:Clojure Desktop Applications with Swing by Kototama on Wednesday December 14, 2011 @10:59AM (#3352295)
The Nimbus theme does not look so bad, otherwise you can still set the native theme. http://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/n...

I wrote an article last year on how to design the dialogs with Netbeans and write the code with Clojure: http://inclojurewetrust.blogspot.com/2010/11/how-to-build-gu...

Re:Clojure Desktop Applications with Swing by veeti on Wednesday December 14, 2011 @11:50AM (#3352499)
The "native theme" still looks poor and out of place.
Re:Clojure Desktop Applications with Swing by jon914 on Wednesday December 14, 2011 @01:27PM (#3352963)
With some custom code and the help of libraries like MacWidgets, you can make some decent native-looking GUI's with Swing. See my profile for an example of one - it's a large-scale desktop application.

I concede though that if you go with out of the box LNF's, even Nimbus, your results will not be up to par.

Re:Clojure Desktop Applications with Swing by ww520 on Wednesday December 14, 2011 @11:42AM (#3352469)
Why not wrap Clojure on top of SWT? The native look and feel would look better. And if the interactive and incremental nature of Clojure can be weaved in, it would be fantastic for UI development.
Re:Clojure Desktop Applications with Swing by scottjad on Wednesday December 14, 2011 @02:29PM (#3353221)
GUIFTW wraps SWT and Swing for Clojure.

https://github.com/santamon/GUIFTW

Re:Clojure Desktop Applications with Swing by jamesbritt on Wednesday December 14, 2011 @10:59PM (#3354967)
If you're using JRuby you need to check out Monkeybars: http://monkeybars.org.

I'm the project owner and I need to see what ideas Seesaw might have to steal.

Re:Clojure Desktop Applications with Swing by daveray on Wednesday December 14, 2011 @11:45PM (#3355057)
I hope you find something useful. When I started Seesaw, I spent some time studying Monkeybars for ideas to steal. :)
Re:Clojure Desktop Applications with Swing by jamesbritt on Thursday December 15, 2011 @01:06AM (#3355198)
Oh good! Closure's been on my To Learn periphery, and I wondered if Monkeybars could be adapted for it, or if the general ideas (e.g. decoupling concerns; using dynamic look-up to drive compiled GUI classes so a WYSIWYG editor can be used) could be employed.
Re:Clojure Desktop Applications with Swing by daveray on Thursday December 15, 2011 @04:34PM (#3358129)
Clojure's wonderful. Give it a try if you get a chance. :)
Re:Clojure Desktop Applications with Swing by jamesbritt on Thursday December 15, 2011 @04:47PM (#3358191)
I've been hinting to the wife that for Christmas I want an extra 4 hours every day to get stuff done. :)
Re:Clojure Desktop Applications with Swing by daveray on Thursday December 15, 2011 @10:22PM (#3359262)
Ha! Good luck with that. If I tried that, I'd probably get a divorce for Christmas :)
Re:Clojure Desktop Applications with Swing by mgkimsal on Wednesday December 14, 2011 @06:24PM (#3354201)
A bit off topic, but I've had some fun playing with Griffon - http://griffon.codehaus.org/ - Swing apps with Groovy.