Hi there,
I've got JTable with only one editable TextField which is directly
derived from JTextField and implements its own KeyListener (to verify
user input). The table has a custom renderer and editor.
The scenario is the following:
The problem is that the textfield keylisteners only works, if I have
selected the cell before with a mouse click. If I end editing by
pressing VK_ENTER the next editable textfield is selected and input
can be made, but this key event never finds its way to the textfield
keylistener. If I give the JTable its own key listener I can see that
the key event is processed by the JTable.
So, how do I get the key listener of the textfield to work again ?
Or how can I transfer the key event that the JTable receive down to
the textfields key listener ?
Thanks for the help
Alex
Christian Kaufhold - 02 Feb 2004 17:41 GMT
> I've got JTable with only one editable TextField which is directly
> derived from JTextField and implements its own KeyListener (to verify
[quoted text clipped - 11 lines]
> Or how can I transfer the key event that the JTable receive down to
> the textfields key listener ?
Read
http://groups.google.com/groups?selm=3t3e2dcc12i2ddfn1f4%40simia.chka.de
Christian