1 33 34 package edu.rice.cs.util.swing; 35 36 import javax.swing.table.*; 37 import java.util.Vector ; 38 39 42 public class UneditableTableModel extends DefaultTableModel { 43 public UneditableTableModel() { super(); } 44 public UneditableTableModel(int rowCount, int columnCount) { super(rowCount,columnCount); } 45 public UneditableTableModel(Object [][] data, Object [] columnNames) { super(data, columnNames); } 46 public UneditableTableModel(Vector columnNames, int rowCount) { super(columnNames, rowCount); } 47 public UneditableTableModel(Vector data, Vector columnNames) { super(data,columnNames); } 48 public boolean isCellEditable(int row, int col) { return false; } 49 } 50 | Popular Tags |