sshahine / JFoenix

JavaFX Material Design Library
MIT License
6.27k stars 1.05k forks source link

Implement IFXValidatableControl in java module #1164

Closed JhonnySalles closed 3 years ago

JhonnySalles commented 3 years ago

Good night.

I'm trying to implement the validation interface, to create a custom validation for a textfield. However, I don't know if it is because I am using modules in Java, but I get the message that the interface is not accessible to use it. I am trying to use it, as it was informed that the facade will be discontinued.

I also tried to open it, but I was unsuccessful, and I am not sure what is wrong.

Below are images of the error

image

image

image

sshahine commented 3 years ago

Hello, Plz note that IFXValidatableControl is used to make controls support validation. However what you need to do is to extend ValidatorBase and implement your own validation logic there and use it for the JFXTextField.

JhonnySalles commented 3 years ago

Ok, I will try this, thank you very much.