This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
In the GUI part of the assignment, I have a FlightTableModel extends AbstractTableModel, which my JTable uses. I am trying to make the table cells uneditable, but failed no matter I override the isCellEditable () or not. I am wondering how to make the cells uneditable. Can anyone help? Thanks, Cathy
Hi, By default, cell is not editable. Just remember don't override the 'setValueAt'. cindy
Joined: Mar 02, 2002
Originally posted by cindy sung: By default, cell is not editable. Just remember don't override the 'setValueAt'. cindy[/QB]
Hi Cindy, I understand that it is not editable by default, so I did not bother to override isCellEditable at first, but it is editable! I did override setValueAt because I need to put the result of search in the table. Do you mean it is editable because I override setValueAt? That really sounds new to me. Thanks, Cathy