My JTable is already set up for selecting a single cell at a time. I would like to know what command to use to get the cell at (selectedRow, selectedColumn) to have focus, too, not just selection. I assume I should get the component of the cell and do .requestFocus()
There's no 'component of the cell'. Are you looking for editCellAt(...) ?
There are no new questions, but there may be new answers.
Joined: Oct 12, 2005
The way my program is so far, the program selects a single cell, but when the user starts typing something, what the user typed does not enter the cell. What I want is to have the program make the cell so that the border of the cell changes color and when the user types something, it enters the cell.
Basically what I want is, what happens when the user clicks a cell once, except that I want the program to do it so that the user does not have to.