MenueController Button highlight

This commit is contained in:
Richard Reiswich 2023-02-01 18:20:22 +01:00
parent 646d63c6c0
commit f5ca04983c

View File

@ -5,9 +5,6 @@ import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.Node;
import javafx.scene.control.*;
import javafx.scene.input.MouseEvent;
import java.util.HashMap;
public class MenueController {
@ -90,12 +87,14 @@ public class MenueController {
buttons = p.getChildrenUnmodifiable();
for(Node button : buttons){
b.getStyleClass().remove("active");
System.out.println(b.getStyleClass());
/*
b.getStyleClass().remove("active");
if (button.equals(b)){
b.getStyleClass().add("active");;
}
*/
}
}
}