Re: Question ActionListener conditional

2011-12-23 Thread Aaron Cohen
On Fri, Dec 23, 2011 at 3:08 PM, Antonio Recio wrote: > When I click 2 times the button isoButton I get an error. > (.addActionListener isoButton >                     (proxy [ActionListener] [] >                       (actionPerformed [] Sorry, forgot the parameter here, add an "e". (actionPerfo

Re: Question ActionListener conditional

2011-12-23 Thread Antonio Recio
When I click 2 times the button isoButton I get an error. (.addActionListener isoButton (proxy [ActionListener] [] (actionPerformed [] (if (.isSelected isoButton) (println "Button is selected")

Re: Question ActionListener conditional

2011-12-23 Thread Aaron Cohen
On Fri, Dec 23, 2011 at 1:29 PM, Antonio Recio wrote: > I am trying to add and to remove an object "isoActor" when I click the > button "isoButton", but I get an error: > Exception in thread "main" java.lang.IllegalArgumentException: Don't know > how to create ISeq from: clojure.lang.Symbol > > Th

Question ActionListener conditional

2011-12-23 Thread Antonio Recio
I am trying to add and to remove an object "isoActor" when I click the button "isoButton", but I get an error: Exception in thread "main" java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Symbol The code: (. isoButton addActionListener (proxy [ActionListen