Reputation: 67
I uploaded an image to my button, but it looks like this:
The button isn't shaped like the image, and the button colors are still visible on the edges. Is there a way to change this?
Upvotes: 0
Views: 1334
Reputation: 1990
try this:
button.setStyle("-fx-background-radius: 0; -fx-padding: 0; -fx-background-color: transparent;");
you can also apply the style in a css
Upvotes: 0