From f5ca04983cad6610a9571a266e5a7bfc70d19074 Mon Sep 17 00:00:00 2001 From: Richard Date: Wed, 1 Feb 2023 18:20:22 +0100 Subject: [PATCH] MenueController Button highlight --- .../bib/essensbestellungsverwaltung/MenueController.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/bib/essensbestellungsverwaltung/MenueController.java b/src/main/java/com/bib/essensbestellungsverwaltung/MenueController.java index c60e102..6ce335c 100644 --- a/src/main/java/com/bib/essensbestellungsverwaltung/MenueController.java +++ b/src/main/java/com/bib/essensbestellungsverwaltung/MenueController.java @@ -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");; } + */ } } }