我如何在列项目日期、从时间到时间的 jtable 中添加日期选择器和时间选择器?
How i can add datepicker and timepicker inside jtable of column Item Date,From Time And To Time?
如何在项目日期、时间和时间列的 jtable
内添加 datepicker
和 timepicker
?
我已经在 jtable
中添加了 combobox
。
Screen Shot is added of my GUI
TableColumn dateColumn = jTable1.getColumnModel().getColumn(4);
dateColumn.setCellEditor(new TimeTableEditor());
TableColumn dateColumn1 = jTable1.getColumnModel().getColumn(5);
dateColumn1.setCellEditor(new TimeTableEditor());
TableColumn dateColumn3 = jTable1.getColumnModel().getColumn(0);
dateColumn3.setCellEditor(new DateTableEditor());
我正在使用 LGoodDatePicker-GitHub https://github.com/LGoodDatePicker/LGoodDatePicker 并将以上代码放在 JTable 的 PropertyChange 中。(0,4,5 )是列索引.
如何在项目日期、时间和时间列的 jtable
内添加 datepicker
和 timepicker
?
我已经在 jtable
中添加了 combobox
。
Screen Shot is added of my GUI
TableColumn dateColumn = jTable1.getColumnModel().getColumn(4);
dateColumn.setCellEditor(new TimeTableEditor());
TableColumn dateColumn1 = jTable1.getColumnModel().getColumn(5);
dateColumn1.setCellEditor(new TimeTableEditor());
TableColumn dateColumn3 = jTable1.getColumnModel().getColumn(0);
dateColumn3.setCellEditor(new DateTableEditor());
我正在使用 LGoodDatePicker-GitHub https://github.com/LGoodDatePicker/LGoodDatePicker 并将以上代码放在 JTable 的 PropertyChange 中。(0,4,5 )是列索引.