Remove the Default Border Glow of a JavaFX button


button.setStyle("-fx-focus-color: transparent;");
or

.button{
-fx-focus-color: transparent;
}
or

.button:focused{
-fx-focus-color: transparent;
}

Leave a Reply

Your email address will not be published. Required fields are marked *