Title: JTable difficulty

Hi

I found your mail address on the askjeeves website. I am searching for a way to disable a JTable column from being edited.  You had answered a  similar doubt a couple of years ago.


TableColumn tCol = table.getColumn("Sport");
 DefaultTableCellRenderer tColRend =  (DefaultTableCellRenderer)nCol.getCellRenderer();
 tColRend.setBackground(Color.gray);
 tCol.setCellEditor(null);

The above is code that I found in a mail from Prakash Muthukrishnan
 asking Tony of LaPaso Cyclone Software Corporation Scottsdale, Arizona USA
 for a solution.

I would appreciate an early reply to this problem.

Regards

Mario Fernandes

Reply via email to