Posted Saturday, September 10, 2005 @ 22:37:04
QuickTable doesn't have the summation feature.
There is an ugly workwround to acheive this, which I hate to suggest. Add an empty row and setvalue with the sum value. The color of this row can be modified using cellPropertiesModel.getBackground(int row, int col) . when user updates cell, listen for cell value changes using DBTableCellListener.cellValueChanged(int row, int col, java.lang.Object oldValue, java.lang.Object newValue) and update the total value for the column into the sum row. You can make the sum row non editable using CellPropertiesModel.getCellEditable(int row, int col) method.