Re: Keyboard Input in Applets

2010-06-18 Thread rob levy
For the sake of anyone who finds this thread in a search at some point, here is the actual answer to my original question: 1. It doesn't matter whether you extend Applet or JApplet, at least for my purposes so far, it seems. JApplet is swing, and solves some of the bugginess found in awt (such a

Re: Keyboard Input in Applets

2010-06-14 Thread rob levy
Meikel, Thank you! This gives me some ideas I'm going try. I read your blog posts too, great stuff. The new book by Vanderhart & Sierra serves as good documentation of proxy as well. I have not yet come across a good "Java for Clojure Programmers" guide that really explores all the hairy probl

Re: Keyboard Input in Applets

2010-06-14 Thread Meikel Brandmeyer
Hi, On Jun 14, 8:55 am, rob levy wrote: > (ns ... >     ... >     (:gen-class >      :extends javax.swing.JApplet >   ???   :implements java.awt.event.KeyListener)) :implements [java.awt.event.KeyListener] Note: vector. > (defn -init [#^JApplet applet] >   ??? addKeyListener ) You probably w

Keyboard Input in Applets

2010-06-13 Thread rob levy
Hi All, I've been able to figure out many Java things based on Sun's online documentation, and this is undoubtedly due to my not being a Java programmer, but for the life of me I can't figure out based on Java examples how to get my Clojure JApplets to respond to keyboard input. Does anyone have