This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance 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
Pie
Posts: 20546
57
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