Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+15 votes

I managed to get the slider to show up, but it's not centered, its tiny, the label is so small that it's just showing up as "...", and it's inside the painting canvas... Right now I'm adding it to the UI by doing

root.getChildren().add(slider);
asked in CSC305 Fall 2022 by (1 point)

2 Answers

+9 votes

What type is root?

If you changed it to type BorderPane, then you should be able to use:

root.setTop(myHBox)
answered by (3.4k points)
+8 votes

I have the same problem. The slider and the label are in the top but are not centered.

answered by (1 point)
...