JButton rewindButton = new JButton("<<"); rewindButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { playThread.goBack(); } }); panel.add(rewindButton);
  private JPanel createButtonPanel() {    JPanel panel = new JPanel(new GridLayout(1, 0));    JButton veryBadButton = new JButton("This sux");    veryBadButton.addActionListener(new ActionListener() {      public void actionPerformed(ActionEvent e) {        setRating(0);      }    });    panel.add(veryBadButton);    JButton badButton = new JButton("Yawn");    badButton.addActionListener(new ActionListener() {      public void actionPerformed(ActionEvent e) {        setRating(2);      }    });    panel.add(badButton);        JButton normalButton = new JButton("Not bad");    normalButton.addActionListener(new ActionListener() {      public void actionPerformed(ActionEvent e) {        setRating(5);      }    });    panel.add(normalButton);       JButton goodButton = new JButton("Cool");    goodButton.addActionListener(new ActionListener() {      public void actionPerformed(ActionEvent e) {        setRating(7);      }    });    panel.add(goodButton);        JButton veryGoodButton = new JButton("Love it");    veryGoodButton.addActionListener(new ActionListener() {      public void actionPerformed(ActionEvent e) {        setRating(10);      }    });    panel.add(veryGoodButton);    pauseButton = new JButton("");     pauseButton.addActionListener(new ActionListener() {      public void actionPerformed(ActionEvent e) {        setPaused(!playThread.isPaused());      }    });    panel.add(pauseButton);    JButton skipButton = new JButton(">>");    skipButton.addActionListener(new ActionListener() {      public void actionPerformed(ActionEvent e) {        playThread.reject();      }    });    panel.add(skipButton);    return panel;  }