Connecting Swing elements idiomatically?

2009-08-11 Thread Bradbev
I'll admit that I haven't done much GUI programming at all, but I'm finding that I want to throw together small simple Gui apps with Clojure. My problem is that every way I try to build my app, it feels wrong (ugly, over complex, etc). My current least-ugly solution is to share a ref between

Re: Connecting Swing elements idiomatically?

2009-08-11 Thread Abhishek Reddy
Hi Brad, I saw your question on IRC the other day and came up with this: http://gist.github.com/164652 That demo creates a frame with sliders that control the horizontal and vertical position of a spot in a panel. It's certanly not the best possible implementation, but you might find its style

Re: Connecting Swing elements idiomatically?

2009-08-11 Thread Bradbev
On Aug 11, 10:15 pm, Abhishek Reddy arbs...@gmail.com wrote: Hi Brad, I saw your question on IRC the other day and came up with this:http://gist.github.com/164652 That demo creates a frame with sliders that control the horizontal and vertical position of a spot in a panel. It's certanly