1 3 package jodd.swing; 4 5 import java.util.Vector ; 6 7 import javax.swing.table.DefaultTableModel ; 8 9 public class ReadOnlyDefaultTableModel extends DefaultTableModel { 10 11 public ReadOnlyDefaultTableModel() { 12 super(); 13 } 14 15 public ReadOnlyDefaultTableModel(int rowCount, int columnCount) { 16 super(rowCount, columnCount); 17 } 18 19 public ReadOnlyDefaultTableModel(Object [] columnNames, int rowCount) { 20 super(columnNames, rowCount); 21 } 22 23 public ReadOnlyDefaultTableModel(Object [][] data, Object [] columnNames) { 24 super(data, columnNames); 25 } 26 27 public ReadOnlyDefaultTableModel(Vector columnNames, int rowCount) { 28 super(columnNames, rowCount); 29 } 30 31 public ReadOnlyDefaultTableModel(Vector data, Vector columnNames) { 32 super(data, columnNames); 33 } 34 35 43 public boolean isCellEditable(int row, int column) { 44 return false; 45 } 46 } 47 | Popular Tags |