How to Add a JXDatepicker for a JTable column
问题 I'm using a JTable. There I have a Date column, where I need to make a JXDatePicker appear when I click on a cell so that I can select a date from it. Can someone show me how to do this? Thanks! waiting for an answer.. 回答1: You should probably use DatePickerCellEditor , which is a CellEditor using a JXDatePicker as editor component. For example: TableColumn dateColumn = table.getColumnModel().getColumn(columnIndex); dateColumn.setCellEditor(new DatePickerCellEditor()); Here is a demo table: