Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable.clearSelection Doesn't Unselect JTextField

 
Andy Holm
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 20822
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out CellEditor.stopCellEditing and CellEditor.cancelCellEditing
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!