Cool. Have you seen https://github.com/stuartsierra/cljque ? They might be nice to use with Swing events.
I figured you could turn a string into a label, button or textbox depending on if it's wrapped in an atom, observer or not at all. But that is just more blabla, I need to make some time to look at the source and try some stuff myself. On Apr 19, 6:20 pm, Dave Ray <dave...@gmail.com> wrote: > Thanks. At the moment Seesaw has a ToWidget protocol which it uses to > implicitly convert things to Swing components (String -> JLabel, > Action -> JButton, etc). So it should be pretty extensible beyond the > default conversions that are supplied. > > Dave > > On Tue, Apr 19, 2011 at 10:41 AM, pepijn (aka fliebel) > > > > > > > > <pepijnde...@gmail.com> wrote: > > I'll look at it more closely later, but the idea of a Swing wrapper > > DSL is awesome. > > > It occurred to me that Lisp is data as code, and that every object can > > transform itself into something printable (toString). > > > So why don't objects support toSwing? With the aid of metadata, I'm > > sure it could work. > > > On Apr 19, 12:57 am, Dave Ray <dave...@gmail.com> wrote: > >> Hi, > > >> For the last few weeks, I've been working on a Clojure Swing wrapper > >> called Seesaw. I've learned a lot about Clojure so far, but I think > >> it's time to ask for some feedback. If I wait 'til it's perfect or > >> complete, ... well, then no one would ever hear from me. The code can > >> be found on github here: > > >> https://github.com/daveray/seesaw > > >> I guess I'm looking for two kinds of feedback: > > >> 1) Is something like this useful or interesting to anybody? As someone > >> who spends a lot of time programming Swing, it's useful to me, but if > >> some tweaks or changes would help others, I'd like to know. > > >> 2) How bad am I abusing Clojure and what could I do to improve it? > >> It's not particularly functional, but I'm currently using Swing's > >> insanely imperative style as an excuse for that. > > >> Thanks! > > >> Dave > > > -- > > You received this message because you are subscribed to the Google > > Groups "Clojure" group. > > To post to this group, send email to clojure@googlegroups.com > > Note that posts from new members are moderated - please be patient with > > your first post. > > To unsubscribe from this group, send email to > > clojure+unsubscr...@googlegroups.com > > For more options, visit this group at > >http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en