> What's the function to call java code on multiple java components?  If
> I have a sequence of Java swing components and I want to go through
> and set the same properties for each one, I would use a for loop in
> Java.  If I were using immutable structs in clojure, I'd just a map
> and just change the keys I'd want to change.  Should I still use a map
> if I don't care about what I'm returning and I just want to call set*
> methods on each component?

By the way, I'm doing this from a map of existing components, so for
example if I have a sequence of 10 JButtons, I want to make 10 new
JButtons mapping the text from the originals and also set specific
properties on the new ones, so I'm wondering if I should just do it in
a really big map call or break it into two pieces--copy over the
buttons then "line them up" again to set one to the other.

-- 
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

Reply via email to