I have some old Java application that uses JTable to show some data and allow input as well. JTable has 2 columns. Next to JTable, there is button that adds new row into JTable.
My problem is behavior of Tab and Enter keyboard keys and mouse clicks when you navigate JTable.
I will try to explain: Let say there are 5 rows in JTable:
- if I click with mouse on one row, sometime whole row gets highlighted, and sometime cell gets into edit mode (in addition to whole row being higlighted)
- Sometime, selected row gets highlighted, but cell above or below highlighted row gets into edit mode
- If I use Tab to skip from one field to another, editable field is always above highlighted row.
There are other issues as well.
Any ideas what might be wrong with it?