This content has been marked as final. Show 3 replies
Try to set -fx-padding: 0 on the Button.
If you use css to set the image (via -fx-background-image), you can use -fx-background-size to make the image fill the space. Calling setGraphic on a button is not the same as setting the background image.1 person found this helpful
Thanks, I knew it was going to be something very simple :)