dear friends I am adding rows to JTable on run time,I want my focus on a particular cell after adding the new row,i found one method requestFocus()in class JTable.AccessibleJTable.AccessibleJTableCell, How to use it,or any other suggessions, please help me thanks in advance.
posted 15 years ago
I am not sure if this is that you want. Please try, 1. clean your table's selection( yourTable.clearSelection() 2. request focus on a cell (yourTable.changeSelection(rowIndex, columnIndex, false, false) . Now the cell is in the input mode and the border is highlight. I am sorry if it doesn't help.