void () { SwingUtilities.invokeLater(() -> { EditorTextField textField = getEditorTextField(); if (textField == null) return; final int pos = textField.getDocument().getText().lastIndexOf('.'); if (pos > 0) { textField.select(TextRange.create(0, pos)); textField.setCaretPosition(pos); } }); }