Hi, On Fri, May 07, 2010 at 10:03:47PM -0700, cap11235 wrote:
> I'm trying to extend JPanel using gen-class, and I can't find a way to > implement a constructor so I can add a KeyListener to it. From what I > can tell, :init is only for setting up the :state reference for the > class, and calling super's contructors. I tried having it have "this" > as a parameter, but I get get an IllegalArgumentException. How can I > add my KeyListener? Have a look at :post-init. http://richhickey.github.com/clojure/branch-1.1.x/clojure.core-api.html#clojure.core/gen-class Sincerely Meikel -- 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