sshahine / JFoenix

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

JFXSlider thumb disappear when running #1195

Closed AGPEIM closed 3 years ago

AGPEIM commented 3 years ago

i put a jfxSlider in a hbox and it can display well in Scene Builder,however ,the thumb doesn't show when it's running. i'm using java11 and javafx 15.0.1 ,here is the fxml code `

` image image

sorry for my poor English

AGPEIM commented 3 years ago

I loaded the css flies in a wrong way ,it should be like scene.getStylesheets().add(getClass().getResource("Style/style.css").toExternalForm()); but i use Application.setUserAgentStylesheet(getClass().getResource("Style/style.css").toExternalForm());