Browse Source

双击编辑

fbp/master
renekton 1 month ago
parent
commit
bc25bd6636
  1. 6
      designer-base/src/main/java/com/fr/design/write/submit/DBManipulationPane.java

6
designer-base/src/main/java/com/fr/design/write/submit/DBManipulationPane.java

@ -754,7 +754,7 @@ public class DBManipulationPane extends BasicBeanPane<DBManipulation> {
return super.stopCellEditing();
}
});
((DefaultCellEditor) column1.getCellEditor()).setClickCountToStart(1);
((DefaultCellEditor) column1.getCellEditor()).setClickCountToStart(2);
//设置Column 2的Editor
column2.setCellEditor(new ColumnValueEditor());
@ -963,12 +963,12 @@ public class DBManipulationPane extends BasicBeanPane<DBManipulation> {
}
/*
* 击以编辑
* 击以编辑
*/
@Override
public boolean isCellEditable(EventObject anEvent) {
if (anEvent instanceof MouseEvent) {
return ((MouseEvent) anEvent).getClickCount() >= 1;
return ((MouseEvent) anEvent).getClickCount() >= 2;
}
return true;
}

Loading…
Cancel
Save