Amélioration du code
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user