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
  • 10,181
  • 7
  • 62
  • 98
Ganesh Hegde
  • 227
  • 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
  • 203,806
  • 29
  • 246
  • 1,045