@Override
    public void init() {
        running_as_applet = true;

        acontext = getAppletContext();

        String s = getParameter("jorbis.player.playlist");
        playlistfile = s;

        s = getParameter("jorbis.player.icestats");
        if (s != null && s.equals("yes")) {
            icestats = true;
        }

        loadPlaylist();
        initUI();

        if (playlist.size() > 0) {
            s = getParameter("jorbis.player.playonstartup");
            if (s != null && s.equals("yes")) {
                playonstartup = true;
            }
        }

        setBackground(Color.lightGray);
        //  setBackground(Color.white);
        getContentPane().setLayout(new BorderLayout());
        getContentPane().add(panel);
    }