aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes JTable.clearSelection Doesn't Unselect JTextField Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable.clearSelection Doesn Watch "JTable.clearSelection Doesn New topic
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: 19543
    
  16

Check out CellEditor.stopCellEditing and CellEditor.cancelCellEditing


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTable.clearSelection Doesn't Unselect JTextField
 
Similar Threads
JTable
JTable
JTable
Jtable
JTable