Click to See Complete Forum and Search --> : JTable editing - how to prevent it


Florence
March 8th, 1999, 01:25 PM
Hi -


I am trying to implement a JTable that will not allow the user to edit any of the cells. Does anybody have an idea of how to do it? I am at my wits end. Any help will be appreciated.


- Florence

Ajay Raina
March 9th, 1999, 03:51 AM
In the isCellEditable( int ,int) of your TableModel,always return false


public boolean isCellEditable( int,int)

{

// return false for all cells

return false;

}