0

I have a table of forms which accepts first name, last name etc. When I navigate through using the tab key and enter some text in first name, all of the text disappears and that row gets selected. I have tried almost all techniques.

Is there any way we can avoid that using coding? If I use the mouse then it wont give that error.

James Monger
  • 9,412
  • 6
  • 52
  • 89
Ganesh Hegde
  • 217
  • 2
  • 3
  • 7

1 Answers1

3

Assuming an otherwise correct use of JTable, you may need to terminate the edit when focus is lost, as suggested here and here:

table.putClientProperty("terminateEditOnFocusLost", true);
Community
  • 1
  • 1
trashgod
  • 200,320
  • 28
  • 229
  • 974