I figured out the answer finally.
it’s in the module-info.java file
I just had to put this line of code there
but be careful about a thing
when I run the project with a different Jfoenix component, let’s say JFXtextfield I encountered “java.lang.reflect.InaccessibleObjectException”
with a large stack trace
someone encountered the same thing right here https://github.com/jfoenixadmin/JFoenix/issues/955
for me since I am using maven on IntelliJ I added those two lines in VM options
--add-opens java.base/java.lang.reflect=com.jfoenix --illegal-access=warn
and everything worked well
CLICK HERE to find out more related problems solutions.