JComponentPack 1.3.0 New Features
October 6, 2008
1. CellSpanModel
Adds new CellSpanModel,the JDataGrid component can merge and split cell
with a plain TableModel, the DataGridModel now refactor to implement the CellSpanModel interface,
Example Code:
2. CellEditorListener2
Adds new listener CellEditorListener2, get the notification of the JDataGrid
cell validate and convert failed message.
Example Code:
public void editingFailed(ChangeEvent e) {
int row = dataGrid.getEditingRow();
int column = dataGrid.getEditingColumn();
Cell c = new Cell(row, column);
JOptionPane.showMessageDialog(null, "Invalid value at cell: "+c);
}
});
3. DateCellEditor works with JCalendar component.
DateCellEditor support choose Date by using the JCalendar component.
Example Code:
4. JDataGrid can change cell editor component type by column or by value class.
Example Code 1:
5. All cell editor hava new implementation of combo box component type.
Example Code 1:
6. AComboBox support change the value class.
AComboBox component can change it’s popup icon and popup component based it’s value or a type (For example: Date.class).
7. DateCellRenderer and DateCellEditor use the default date format.
Using the date format as default format in DateCellRenderer and DateCellEditor, keep the same behavior with the JTable component.
8. New API to changes all the cell editor’s component type.
AbstractCellEditor and it’s subclass have the method to change it’s component type:
AbstractCellEditor.setCellEditorComponentType(CellEditorComponentType);
AbstractCellRenderer and it’s subclass have the method to change it’s component type:
AbstractCellRenderer.setCellRendererComponentType(CellRendererComponentType);
9. Listen the cell editor event from JDataGrid directly.
JDataGrid add new API to receive all cell editor event, such as cell editing stopped, canceled, failed.
10. Many bugs get fixed.
a) When set a new model in LineChart and BarChart, the x and y axis and grid hidden. (Bug Fixed)
Thanks "Corey Sewell" for reporting this bug.
b) I have a Date column. I do an Excel-style "select & drag the corner" to advance the values in the cells below.
The day of the month advances correctly, but the month does not change.
Thank Plamen Petrov for bug report.
c) JBean throws ConcurrentModificationException.
Thank Harry Dollard for bug report.
The hottest article