Problem with Function Key in multiple JTextArea's

Hi all,

I have an unusual problem that I'm hoping someone has run into before. I'm working on a chatroom with multiple JTextArea's. I'm filter incoming keystrokes to run the appropriate method. I want to use function keys to perform various functions. I know it will, theoretically work because my test program worked fine in my test apllet with 1 JTextArea. All the other keyevent's work fine but the eventlistener acts like it doesn't detect any (function) event at all. I'm hoping that someone has run into this before.

Thanks.

Chris

[568 byte] By [batymohna] at [2007-11-27 5:49:55]
# 1
What method are you using?
Hippolytea at 2007-7-12 15:37:05 > top of Java-index,Desktop,Core GUI APIs...
# 2

Here's a code snipet:

String dummy;

int keyVal = e.getKeyCode();

switch (keyVal) {

case KeyEvent.VK_F1:

But what concerns me is that my debugger doesn't respond to any function key. I can't even debug because the debuger can't see what I'm doing. I've tried listening for function keys in the parent panel but with the same result. This is going to be a bear to solve.

Thanks.

Chris

batymohna at 2007-7-12 15:37:05 > top of Java-index,Desktop,Core GUI APIs...
# 3
What method are you using? That is, what method in the KeyListener interface (I assume, you haven't mentioned it) are you overriding here?
Hippolytea at 2007-7-12 15:37:05 > top of Java-index,Desktop,Core GUI APIs...