Different models for different tables...

Hi,

I've a gui interface with 3 different table (different fields);

I need of editing only

- the first column of the table1

- the second column of the table2

- the third column of the table3

Must I create three different classes, one for each table, that extend DefaultTableModel and override in a different way, the isCellEditable method?

Is this the only way?

I think it isn't a fast way.

Thank you.

MargNat

[479 byte] By [MargNata] at [2007-11-26 18:20:37]
# 1

Why isn't this fast?

JTable t = new JTable(new DefaultTableModel() {

public boolean isCellEditable(int row, int col) {

return col == 0;

}

});

Jasprea at 2007-7-9 5:54:24 > top of Java-index,Desktop,Core GUI APIs...
# 2
Yes,Thank you.I had forgotten inner type classes.ByeMargNat
MargNata at 2007-7-9 5:54:24 > top of Java-index,Desktop,Core GUI APIs...