Since you are using a Hbox container, you can just use the setSpacing() method:
setSpacing(double value)
This method allows you to set a desired space between the children of the HBOX container, which, in this scenario, is your buttons, this way:
buttonPanel.setSpacing(10);