public static void moveCurserToEndOfTextField(JTextField textField) {
        if (textField == null) {
            throw new IllegalArgumentException("The argument may not be null.");
        }

        textField.setCaretPosition(textField.getText().length());
    }