I thought my problem again. The import code is unavoidable. the clj- imports script is really help :-)
On Jul 7, 6:17 am, Timothy Pratley <timothyprat...@gmail.com> wrote: > This works great for looking up > classes:http://dishevelled.net/Generating-Clojure-import-lines-using-SLIME.html > <http://dishevelled.net/Generating-Clojure-import-lines-using-SLIME.html>You > can just call the function from the REPL if you don't use SLIME > Hope that helps > > <http://dishevelled.net/Generating-Clojure-import-lines-using-SLIME.html> > Regards, > Tim. > > > > On Tue, Jul 6, 2010 at 6:34 AM, Cachou <tangtong...@gmail.com> wrote: > > I write a swing wrapper for fun. > > >http://gist.github.com/465370 > > > It work well. (eg.http://gist.github.com/465323, > >http://java.sun.com/docs/books/tutorial/uiswing/components/button.html > > ButtonDemo example) > > > But there is a small problem troubling me. > > > I must import the Event Listener where I use my "make-listener" or > > "add-listener" function. (because they are dynamically using the > > imported java class Symbol) > > > I'm finding a way to just import all the java classes, so that I don't > > need to always add the redundant import code~ > > > PS: I try to used a big map to map all keyword to full java classes. > > There're 39 classes, the hard-code is too stupid, so I give up. > > > Some ideas? > > > Thx :-) > > > -- > > You received this message because you are subscribed to the Google > > Groups "Clojure" group.> To post to this group, send email > > tocloj...@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<clojure%2bunsubscr...@googlegroups.com> > > For more options, visit this group at > >http://groups.google.com/group/clojure?hl=en -- 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