Skip to content

Commit

Permalink
Update ConfigTable.java
Browse files Browse the repository at this point in the history
  • Loading branch information
bit4woo committed Jan 8, 2024
1 parent d27177d commit 0aa7766
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/config/ConfigTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,14 @@ public void setupTypeColumn() {
TableColumnModel model = this.getColumnModel();

int col = Arrays.asList(config.ConfigTableModel.titles).indexOf("Type");
model.getColumn(col).setCellEditor(new DefaultCellEditor(comboBox));
DefaultCellEditor editor = new DefaultCellEditor(comboBox);
editor.setClickCountToStart(2);
model.getColumn(col).setCellEditor(editor);

JCheckBox jc1 = new JCheckBox();
int col1 = Arrays.asList(config.ConfigTableModel.titles).indexOf("Enable");
DefaultCellEditor editor1 = new DefaultCellEditor(jc1);
//editor1.setClickCountToStart(2);//没作用
model.getColumn(col1).setCellEditor(new DefaultCellEditor(jc1));
// //Set up tool tips for the sport cells.
// DefaultTableCellRenderer renderer =
Expand Down

0 comments on commit 0aa7766

Please # to comment.