Created
April 23, 2018 19:47
-
-
Save alamenai/4e5a62fcc9de9215cc3f804e2f6dfea0 to your computer and use it in GitHub Desktop.
A piece of code to remove a right/left node from CustomTextField in ControlFX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void removeErrorIcon(TextField textField) { | |
if (textField instanceof CustomTextField) { | |
CustomTextField customTextField = (CustomTextField) textField; | |
Platform.runLater(() -> { | |
((StackPane)customTextField.getRight().getParent()).getChildren().remove(customTextField.getRight()); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment