|
|
|
@ -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; |
|
|
|
|
} |
|
|
|
|