Hi, I've been messing around with awt/swing lately trying to learn how to do applets.
I have written the following short JApplet example code, which on the surface seems to work.
The problems I have occur when I try to exit it:
- Pressing ESC does nothing, in fact line 38 is never reached when I run it in the debugger (nor is line 94 - it seems as if the overridden function processKeyEvent(KeyEvent e) is not being called by the applet runner upon keypress at all). However, mouse events do seem to be processed (via the debugger I can see line 99 being reached when i move the mouse).
- Trying to close/quit eclipse's applet runner causes it to hang, meaning i have to kill the process. That didn't happen when running another applet through it.
- the printed '@' is not at the right size, and I suspect it is not drawing using the fixed width font I set it up to use in line 74.
Any idea what I'm doing wrong?
-Ido.