| Author |
JTable.clearSelection Doesn't Unselect JTextField
|
Andy Holm
Ranch Hand
Joined: Jul 03, 2008
Posts: 86
|
|
|
I have a JTextField within a JTable. When I call clearSelection on the the JTable, the selected row is unselected; however, the JTextField in the previously selected row is still editable. I want this JTextField to be unselected as well.
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
|
Check out CellEditor.stopCellEditing and CellEditor.cancelCellEditing
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
 |
|
|
subject: JTable.clearSelection Doesn't Unselect JTextField
|
|
|