I think the problem is that you are try to use a static method lake an
instance method.  I was able to get the following to work:

(import javax.swing.JColorChooser)

(JColorChooser/showDialog nil "Test" java.awt.Color/BLACK)

Sean

On Mar 22, 4:51 pm, WoodHacker <ramsa...@comcast.net> wrote:
> When I try to use JColorChooser in Clojure I get the followinf error:
>
> Exception in thread "AWT-EventQueue-0"
> java.lang.IllegalArgumentException: No matching method found:
> showDialog for class javax.swing.JColorChooser
>
> Shouldn't showDioalog be there?   What and I doing wrong.   Here's the
> code:
>
> (defn newColor [parent]
>   (proxy [ActionListener] []
>     (actionPerformed [evt]
>       (def colorChooser (new JColorChooser))
>       (doto colorChooser
>         (.showDialog parent "Choose Color" bisque))
>
>      ....
> )))
>
> Bill

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

To unsubscribe from this group, send email to 
clojure+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to