Установите CellEditor следующим образом:
table.getColumnModel().getColumn(1).setCellEditor(new JDateChooserEditor(new JCheckBox()));
/****************************** *******************************************/
Здесь код для JDateChooserEditor:
class JDateChooserEditor extends DefaultCellEditor
{
public JDateChooserEditor(JCheckBox checkBox)
{
super(checkBox);
}
JDateChooser date;
public Component getTableCellEditorComponent(JTable table, Object value,
boolean isSelected, int row, int column)
{
date = new JDateChooser();
date.setDateFormatString("dd-MM-yyyy");
return date;
}
public Object getCellEditorValue()
{
return new String(((JTextField)date.getDateEditor().getUiComponent()).getText());
}
public boolean stopCellEditing()
{
return super.stopCellEditing();
}
protected void fireEditingStopped() {
super.fireEditingStopped();
}
}
Screen Shot
@Prabhath: Этот [пример] (http://stackoverflow.com/a/14880675/230513) с помощью [tag: jcalendar] может помочь вам. – trashgod