Цитата(Goliath @ 11.3.2006, 13:42 ) | | Я так понимаю, что основа ошибка из–за версии JVM? |
Да вообще-то нет. Проблема в том, что они переопределили метод setDataVector() и вызывают из него setColumnIdentifiers() который в свою очередь снова вызывает метод setDataVector(), и так они рекурсивно вызывают сами себя, до тех пор пока не StackOverflowError.
Исправь в AttributiveCellTableModel метод setDataVector на:
| Код | public void setDataVector(Vector newData, Vector columnNames) { if(newData == null) throw new IllegalArgumentException("setDataVector() - Null parameter"); dataVector = newData; super.setDataVector(newData, columnNames); cellAtt = new DefaultCellAttribute(dataVector.size(), columnIdentifiers.size()); newRowsAdded(new TableModelEvent(this, 0, getRowCount()-1, TableModelEvent.ALL_COLUMNS, TableModelEvent.INSERT)); } |
|