public class MainWindow extends JFrame implements BasicPlayerListener {
private JTabbedPane tabbedPane = new JTabbedPane();
private JSplitPane splitPaneFileView = new JSplitPane();
BasicPlayer basicPlayer = new BasicPlayer();
VolCanvas volume = new VolCanvas(basicPlayer);
MyButton2 start = new MyButton2(new ImageIcon("resources/player_play.png"));
MyButton2 pause = new MyButton2(new ImageIcon("resources/player_pause.png"));
MyButton2 fw = new MyButton2(new ImageIcon("resources/player_fwd.png"));
MyButton2 rw = new MyButton2(new ImageIcon("resources/player_rew.png"));
MyButton2 stop = new MyButton2(new ImageIcon("resources/player_stop.png"));
JLabel time = new JLabel();
JLabel text = new JLabel();
String string = "";
long current_time = 0;
long duration = 0;
boolean paus = false;
JEditorPane htmlPane;
public static MainWindow _instance;
public MainWindow() throws HeadlessException {
setTitle("MPlayAnalyzer");
setSize(830, 600);
_instance = this;
getContentPane().setLayout(new BorderLayout());
basicPlayer.addBasicPlayerListener(this);
tabbedPane.setFont(tabbedPane.getFont().deriveFont (Font.BOLD));
tabbedPane.add("playlist", new PlaylistPanel());
tabbedPane.add("tree view", splitPaneFileView);
tabbedPane.add("search", new SearchPanel());
tabbedPane.add("exports", new OptionPanel());
tabbedPane.add("lyrics", new LyricsPanel());
tabbedPane.setIconAt(0, new ImageIcon("resources/cdtrack.png"));
tabbedPane.setIconAt(1, new ImageIcon("resources/folder.png"));
tabbedPane.setIconAt(2, new ImageIcon("resources/search.png"));
tabbedPane.setIconAt(3, new ImageIcon("resources/exec.png"));
tabbedPane.setIconAt(4, new ImageIcon("resources/binary.png"));