Amélioration du code

This commit is contained in:
2024-12-04 18:06:34 +01:00
parent bf787f8e1b
commit b8b525bd16
10 changed files with 4 additions and 41 deletions

View File

@@ -7,12 +7,10 @@ import javax.swing.*;
public class BarChartPanel extends JPanel {
private List<Integer> groupAverages;
private int highlightedGroup;
private JPanel mainPanel; // Store reference to mainPanel
public BarChartPanel(List<Integer> groupAverages, int highlightedGroup, JPanel mainPanel) {
this.groupAverages = groupAverages;
this.highlightedGroup = highlightedGroup;
this.mainPanel = mainPanel;
// Rendre le fond transparent et ajouter une bordure noire
setBackground(new Color(0, 0, 0, 0)); // Fond transparent