0
我已經使用的代碼如下所示。bt它給出classCastException當我點擊jtablendarcombo存在於jtable單元格中時。 請幫助我..謝謝你。我想將jcalendarcombo添加到jtable單元格
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);