Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/308.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 使用JXDatePicker作为编辑器的CellEditor_Java_Swing_Jtable_Swingx_Tablecelleditor - Fatal编程技术网

Java 使用JXDatePicker作为编辑器的CellEditor

Java 使用JXDatePicker作为编辑器的CellEditor,java,swing,jtable,swingx,tablecelleditor,Java,Swing,Jtable,Swingx,Tablecelleditor,我需要使用JXDatePicker使JTable中的日期单元格可编辑。我想我需要实现TableCellEditor,但我自己不敢解决它。有没有人能提供一个链接或一段快速代码来帮助我?假设您指的是作为SwingX一部分的JXDatePicker:它有一个DatePickerCellEditor(在其表包中)-因为在这种情况下,要获得正确的通知并不那么容易:-)请参阅yeah perfect:)我将删除我的答案:DSo如果我理解正确,我只需尝试以下内容:someColumn.setCellEdito

我需要使用JXDatePicker使JTable中的日期单元格可编辑。我想我需要实现TableCellEditor,但我自己不敢解决它。有没有人能提供一个链接或一段快速代码来帮助我?

假设您指的是作为SwingX一部分的JXDatePicker:它有一个DatePickerCellEditor(在其表包中)-因为在这种情况下,要获得正确的通知并不那么容易:-)

请参阅yeah perfect:)我将删除我的答案:DSo如果我理解正确,我只需尝试以下内容:someColumn.setCellEditor(new DatePickerCellEditor())。还是这只是幼稚?我早上第一件事就是试试:)