It is necessary to limit the input to the text field by mask, as shown in the picture. For example, for guaranteed input of integers for a date or time (hour: minute).

alt text

I use JavaFx 8.
Googled in search of a solution - nothing helped. As if javafx 8 and does not allow this to turn. Help!

    2 answers 2

    There is a special component for date input in JavaFX - DatePicker

      Did you try to hang the listener on the textField and if the current text doesn’t satisfy the regular text, then to designate the / prevent button to move on?