日期:2014-05-20 浏览次数:20772 次
protected class MyTableModel extends AbstractTableModel { public boolean isCellEditable(int row, int col) { return false; } } ...... MyTableModel myTableModel = new MyTableModel(); JTable myTable = new JTable(myTableModel);