public void setValueAt(Object aValue, int rowIndex, int columnIndex) { assert columnIndex == 2 : "Column " + columnIndex + " is not editable!"; double value; try { value = Double.parseDouble(aValue.toString()); } catch (NumberFormatException nfe) { value = Double.NaN; } if (dsIndex >= 0 && arcIndex >= 0 && file != null) { try { RrdDb rrd = new RrdDb(file.getAbsolutePath()); try { Robin robin = rrd.getArchive(arcIndex).getRobin(dsIndex); robin.setValue(rowIndex, value); values[rowIndex][2] = InspectorModel.formatDouble(robin.getValue(rowIndex)); } finally { rrd.close(); } } catch (Exception e) { Util.error(null, e); } } }