Selecting all data in a cell using the tab key
posted 14 years ago
I have a JTable with editable cells. When I click on each cell with the mouse the text is highlighted so that when the user starts typing the existing text is overwriten. I have done this by using focuslistener and selectall() method when focusgained. However this doesn't seem to work if I use the tab key or the up down arrow keys to move to the next cell. Can anyone help me with this?