@Override
    public void initPanel() {
        System.out.println("--- RateSongPopUpView.initPanel()");

        final Dimension d = new Dimension(80, 20);

        this.rateSongLabel.setSize(d);
        this.validateButton.setSize(d);
        this.validateButton.addActionListener(this.getController().new ValiderListener());
        this.cancelButton.setSize(d);
        this.cancelButton.addActionListener(this.getController().new CancelListener());
        this.deleteRate.setSize(d);
        this.deleteRate.addActionListener(this.getController().new DeleteListener());

        Song song = this.getController().getModel().getSong();
        String currentUserId = WindowComponent.getInstance().getApiProfile().getCurrentUser().getUserId();
        int rate = -1;
        HashMap<String,Grade> mapGrade = song.getGrades();
        if (mapGrade != null) {
            Grade grade = mapGrade.get(currentUserId);
            if (grade != null) {
                rate = grade.getGrade();
                System.out.println("note = " + rate);
            }
        }

        if (rate==0)
            songRater0.setSelected(true);
        if (rate==1)
            songRater1.setSelected(true);
        else if (rate==2)
            songRater2.setSelected(true);
        else if (rate==3)
            songRater3.setSelected(true);
        else if (rate==4)
            songRater4.setSelected(true);
        else if (rate==5)
            songRater5.setSelected(true);
        //Sinon on n'a pas encore noté la musique on n'affiche rien

        // ajout dans un group radio pour faire en sorte de ne pouvoir cliquer que sur un bouton radio
        this.groupRadio.add(songRater0);
        this.groupRadio.add(songRater1);
        this.groupRadio.add(songRater2);
        this.groupRadio.add(songRater3);
        this.groupRadio.add(songRater4);
        this.groupRadio.add(songRater5);

        GroupLayout layout = new GroupLayout(this.getPanel());
        this.getPanel().setLayout(layout);

        layout.setAutoCreateGaps(true);
        layout.setAutoCreateContainerGaps(true);

        layout.setHorizontalGroup(
            layout.createSequentialGroup()
                .addComponent(this.rateSongLabel)
                .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(this.songRater0)
                )
                .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(this.songRater1)
                )
                .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(this.songRater2)
                )
                .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(this.songRater3)
                )
                .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(this.songRater4)
                )
                .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(this.songRater5)
                )
                .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(this.deleteRate)
                )
                .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(this.validateButton)
                )
                .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(this.cancelButton)
                )


        );

        layout.setVerticalGroup(
            layout.createSequentialGroup()
                .addComponent(this.rateSongLabel)
                .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(this.songRater0)
                    .addComponent(this.songRater1)
                    .addComponent(this.songRater2)
                    .addComponent(this.songRater3)
                    .addComponent(this.songRater4)
                    .addComponent(this.songRater5)
                )
                .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
                    .addComponent(this.deleteRate)
                    .addComponent(this.validateButton)
                    .addComponent(this.cancelButton)
                )



        );

        // TODO : étoiles de notation manquantes
    }