Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JFXSlider thumb disappear when running #1195

Closed
AGPEIM opened this issue Apr 3, 2021 · 1 comment
Closed

JFXSlider thumb disappear when running #1195

AGPEIM opened this issue Apr 3, 2021 · 1 comment

Comments

@AGPEIM
Copy link

AGPEIM commented Apr 3, 2021

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
<HBox layoutX="20"> <JFXSlider orientation="VERTICAL"/> </HBox>
image
image

sorry for my poor English

@AGPEIM
Copy link
Author

AGPEIM commented Apr 8, 2021

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());

@AGPEIM AGPEIM closed this as completed Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant