add clear to setStyleClass

This commit is contained in:
Jan-Peter Klein 2024-10-02 16:56:39 +02:00
parent f22111e36f
commit 16e77d4b9b
No known key found for this signature in database
GPG Key ID: 90EDA3A7C822FD0E

View File

@ -69,6 +69,7 @@ public class NotificationBar extends HBox {
} }
public void setStyleClass(String styleClass) { public void setStyleClass(String styleClass) {
getStyleClass().clear();
getStyleClass().add(styleClass); getStyleClass().add(styleClass);
} }