How can I override the TableCellEditor correctly to allow a cell to be editable on a double click rather than a single click? I have no problem changing the font, color, background and such be using a JTextField as the returning component. How do I make a double click activate editing? Many thanks in advance. [ April 25, 2002: Message edited by: Brian Snyder 2002 ]
Brian Snyder 2002 is not a valid user name. Please re-read the JavaRanch UserName Guidelines and re-register with a valid user name. ( "Brian Snyder" would be a valid username... just take the "2002" off the end. )
The only way I can think that you could change when editing gets launched is to replace the ListSelectionModel with one of your own ( via setSelectionModel() in JTable ) and set selected row and selected column on a single click, but do not set editing row and editing column. Then change the DefaultCellRenderer to have a mouse listener that sets the editing row and editing column of the table when it is double clicked.
Write once, run anywhere, because there's nowhere to hide! - /. A.C.