startPanel = new StartPanel(parent); sharePanel = new SharePanel(parent); downloadPanel = new DownloadPanel(); uploadPanel = new UploadPanel(); searchPanel = new SearchPanel(); serverPanel = new ServerPanel();
startPanel = StartPanel.getInstance(); sharePanel = SharePanel.getInstance(); downloadPanel = DownloadPanel.getInstance(); uploadPanel = UploadPanel.getInstance(); searchPanel = SearchPanel.getInstance(); serverPanel = ServerPanel.getInstance();
    private void init() {        LanguageSelector.getInstance().addLanguageListener(this);        setModel(new DefaultSingleSelectionModel() {          public void setSelectedIndex(int index) {            int oldIndex = getSelectedIndex();            if (oldIndex!=-1){                tabFocusLost(oldIndex);            }            super.setSelectedIndex(index);          }        });        startPanel = new StartPanel(parent);        sharePanel = new SharePanel(parent);        downloadPanel = new DownloadPanel();        uploadPanel = new UploadPanel();        searchPanel = new SearchPanel();        serverPanel = new ServerPanel();        IconManager im = IconManager.getInstance();        ImageIcon icon = im.getIcon("start");        addTab("Start", icon, startPanel);        ImageIcon icon6 = im.getIcon("meinshare");        addTab("Share", icon6, sharePanel);        ImageIcon icon2 = im.getIcon("suchen");        addTab("Suchen", icon2, searchPanel);        ImageIcon icon3 = im.getIcon("download");        addTab("Download", icon3, downloadPanel);        ImageIcon icon4 = im.getIcon("upload");        addTab("Upload", icon4, uploadPanel);        ImageIcon icon5 = im.getIcon("server");        addTab("Server", icon5, serverPanel);        if (PropertiesManager.getOptionsManager().shouldLoadPluginsOnStartup()){            loadPlugins();        }    }