public DatasetTableCellEditor(DatasetEditorTable table, DataEditorComponent editorComponent) {
super(editorComponent, table.getProject());
this.table = table;
JTextField textField = getTextField();
textField.addKeyListener(this);
textField.addMouseListener(mouseListener);
textField.addMouseMotionListener(mouseMotionListener);
SimpleTextAttributes selectionTextAttributes = table.getCellRenderer().getAttributes().getSelection();
textField.setSelectionColor(selectionTextAttributes.getBgColor());
textField.setSelectedTextColor(selectionTextAttributes.getFgColor());