Пример #1
0
 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;
   }
 }
Пример #2
0
 public Object getValueAt(int row, int column) {
   return lookup.get(row, column);
 }