I want to select a part of a text in a control javaFX
TextField
in the same way I did with Java
in a JTextField like this:
controlTexto.setSelectionStart(inicio);
controlTexto.setSelectionEnd(final);
I want to select a part of a text in a control javaFX
TextField
in the same way I did with Java
in a JTextField like this:
controlTexto.setSelectionStart(inicio);
controlTexto.setSelectionEnd(final);
The correct way to select a text within a control TextField
in JavaFX
is by the method selectRange:
miTextField.selectRange(posiciónInicial, cantidadCaracteres);