import javax.swing.JComponent;
import javax.swing.BoxLayout;
import javax.swing.JPanel;
import javax.swing.JButton;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import framework.editors.Editor;
import framework.Sound;
import framework.Player;
//import framework.views.TemporalView;

/**
 * Basic implementation of the framework.
 */
public class BasicEditor extends Editor {
    public BasicEditor(Player pl) {
        super(pl, "Basic Editor");
    }

    public JComponent createCentralComponent() {
        JPanel centralComponent = new JPanel();
        centralComponent.setLayout(new BoxLayout(
            centralComponent,
            BoxLayout.Y_AXIS));

        int i = 0;
        for(Sound s : player.getAllSounds()) {
            final Sound sound = s;

            JPanel linePanel = new JPanel();

            JLabel label = new JLabel("Sound " + i);
            linePanel.add(label);

            //TemporalView v = new TemporalView(200, 100);
            //s.attachView(v);
            //linePanel.add(v);

            JButton paramButton = new JButton(new ImageIcon("framework/editors/icons/settings.png"));
            paramButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    sound.attachEditor();
                }
            });
            linePanel.add(paramButton);

            centralComponent.add(linePanel);

            i++;
        }

        return centralComponent;
    }
}
@@ -322,18 +322,16 @@
 Player;%0A
-//
 import f
@@ -988,18 +988,16 @@
         
-//
 Temporal
@@ -1045,18 +1045,16 @@
         
-//
 s.attach
@@ -1078,10 +1078,8 @@
     
-//
 line

Add the view to the BasicEditor.