public Class getColumnClass(int c) {
   try {
     Class cl = lookup.get(0, c).getClass();
     for (int i = 0; i < getRowCount(); i++) {
       if (!cl.equals(lookup.get(i, c).getClass())) return Object.class;
     }
     return cl;
   } catch (NullPointerException e) {
     return Object.class;
   }
 }
 public void setValueAt(Object value, int row, int column) {
   lookup.add(row, column, value);
 }
 public Object getValueAt(int row, int column) {
   return lookup.get(row, column);
 }
 public int getRowCount() {
   return lookup.maxRow();
 }
 public int getColumnCount() {
   return lookup.maxCol();
 }
 public void clearTable() {
   lookup.removeElements();
   headers.removeAll(headers);
 }