Gregg Williams <[email protected]> writes: > I'm currently stuck on how to translate "aNode.setPaint(Color.RED);"
The interop syntax is described here: http://clojure.org/java_interop Color.RED is a static field, so we use the Classname/staticField syntax, so Color/RED. Combining that with (.instanceMember instance ...) for aNode.setPaint(...) gives us: (.setPaint aNode Color/RED) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en To unsubscribe, reply using "remove me" as the subject.
