我使用的代码如下..当我单击 jtable 单元格中的 jcalendarcombo 时,它会给出 classCastException。请帮助我..谢谢adv。
TableColumn closedDateColumn = resultTable3.getColumnModel().getColumn(7);
MyDateListener listener1 = new MyDateListener();
cmbCalanderDate = new JCalendarCombo(JCalendarCombo.DISPLAY_DATE, true); //Calander Combobox for selecting date
cmbCalanderDate.setDateFormat(new SimpleDateFormat("yyyy-MM-dd"));
closedDateColumn.setCellEditor(new DefaultCellEditor(cmbCalanderDate));
cmbCalanderDate.addDateListener(listener1);