editorTextField.putClientProperty("AuxEditorComponent", Boolean.TRUE);
editorTextField.addFocusListener(new FocusListener() {
@Override
public void focusGained(final FocusEvent e) {
editorTextField.repaint();
}
@Override
public void focusLost(final FocusEvent e) {
editorTextField.repaint();