Implement a limited input text field in javafx.