Re: Newbie question: Writing a GUI with clojure

2009-08-05 Thread Jonathan Smith
I'll second the book recommendation, have the hacks sitting here on my desk and has been very useful so far. I've found that the easiest way for me to do UIs has been to write helper functions that make the components and stitch them together then return them inside hashmaps. Then I write a bunc

Re: Newbie question: Writing a GUI with clojure

2009-08-05 Thread Anne Ogborn
I normally go to the swing tutorials on Sun's website when I have questions. I'm writing a GUI in clojure. I'm using IntelliJ's (not great) FormDesigner. Clojure is in some sense 'on top of' Java, since it uses the Java libs. Writing a Swing GUI in Clojure hasn't been that much different than w

Re: Newbie question: Writing a GUI with clojure

2009-08-05 Thread Julian
On Aug 6, 6:51 am, Joe Van Dyk wrote: > You wouldn't want to whip up a quick example (or blog post) for me, > would ya? Taking a quick look in the files section of this group found this: http://clojure.googlegroups.com/web/clojure-gui-and-netbeans.pdf?hl=en&gda=f1jT-U4AAAC-wnUK1KQ919yJcmM1ACuZF_7

Re: Newbie question: Writing a GUI with clojure

2009-08-05 Thread Joe Van Dyk
On Aug 5, 6:01 am, John Harrop wrote: > On Tue, Aug 4, 2009 at 10:33 PM, Joe Van Dyk wrote: > > Hey, > > > New to Java and Clojure.  My possibly relevant experience is with Gtk > > and Ruby and C++ programming. > > > I'd like to develop a GUI in Clojure.  I'm guessing I want to use > > Swing.  T

Re: Newbie question: Writing a GUI with clojure

2009-08-05 Thread Joe Van Dyk
On Aug 5, 6:53 am, Chas Emerick wrote: > We use NetBeans' matisse designer for static form layout, and we hook   > up the components' behaviour using clojure.  This is pretty easy,   > especially if you configure matisse to expose the components in a form   > by creating them with 'public final'

Re: Newbie question: Writing a GUI with clojure

2009-08-05 Thread Chas Emerick
We use NetBeans' matisse designer for static form layout, and we hook up the components' behaviour using clojure. This is pretty easy, especially if you configure matisse to expose the components in a form by creating them with 'public final' visibility, thereby making them a (.componentN

Re: Newbie question: Writing a GUI with clojure

2009-08-05 Thread Sean Devlin
If you really want to get into Swing I suggest taking a look at the following book: http://oreilly.com/catalog/9780596009076/ It's got tons of "I didn't knnow you could do that..." ideas On Aug 5, 9:01 am, John Harrop wrote: > On Tue, Aug 4, 2009 at 10:33 PM, Joe Van Dyk wrote: > > > > > > >

Re: Newbie question: Writing a GUI with clojure

2009-08-05 Thread John Harrop
On Tue, Aug 4, 2009 at 10:33 PM, Joe Van Dyk wrote: > > Hey, > > New to Java and Clojure. My possibly relevant experience is with Gtk > and Ruby and C++ programming. > > I'd like to develop a GUI in Clojure. I'm guessing I want to use > Swing. This application will be targeted towards scientis

Newbie question: Writing a GUI with clojure

2009-08-05 Thread Joe Van Dyk
Hey, New to Java and Clojure. My possibly relevant experience is with Gtk and Ruby and C++ programming. I'd like to develop a GUI in Clojure. I'm guessing I want to use Swing. This application will be targeted towards scientists who are used to working with the most horribly-designed Tk UI kn