Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+5 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 (665 points)

2 Answers

+4 votes

What type is root?

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

root.setTop(myHBox)
answered by (2.6k points)
+3 votes

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

answered by (385 points)
...