How do you set the slider to the center. When set to the top it is stuck at the top left corner, when trying to do set center afterwards an error occurs. Does anyone have any clues for me??
You can set the slider to center by setting the h box containing it to center using .setAlignment(Pos.CENTER);
use the .setAlignment(Pos.CENTER) method of the hbox you made.