I have a large number of textfields in tabs on screen - each of them must be validated. If there is an error in the input, I want some indication that a specific field has an input error.
Not every culture understands that red border means error, so I need to have the text 'error' somewhere near, over or across. For instance, to have a titled border over the text field in red saying 'error' like Java Swing has. So in the base class of the tab controllers - TabController, I have methods like
validateNumber(TextField field, String validRangeRegex);
validateIpaddress(TextField field, String validRangeRegex);
This question asks the same but the solution involves subclassing from StackPane. GroupBox / TitledBorder in JavaFX 2?
How do I implement titled border without subclassing from TextField?
If it isn't possible in raw JavaFX, I was wondering if a JavaScript handler can write "error" over the text field? http://docs.oracle.com/javafx/2/api/javafx/fxml/doc-files/introduction_to_fxml.html#script_event_handlers