else{ temp = temp.replaceFirst("%s", keinServer); } temp = temp.replaceFirst("%d", Integer.toString(ApplejuiceFassade.getInstance(). getAllServer(). size()));
    public void fireContentChanged(int type, Object content) {        try{            if (type == DataUpdateListener.NETINFO_CHANGED)            {                netInfo = (NetworkInfo) content;                StringBuffer temp = new StringBuffer(label6Text);                int pos = temp.indexOf("%d");                temp.replace(pos, pos + 2, netInfo.getAJUserGesamtAsStringWithPoints());                pos = temp.indexOf("%d");                temp.replace(pos, pos + 2, netInfo.getAJAnzahlDateienAsStringWithPoints());                pos = temp.indexOf("%s");                temp.replace(pos, pos + 2, netInfo.getAJGesamtShareWithPoints(0));                label6.setText(temp.toString());                if (netInfo.isFirewalled())                {                    warnungen.setVisible(true);                    warnungIcon.setVisible(true);                    label7.setText(firewallWarning);                }                else                {                    warnungen.setVisible(false);                    warnungIcon.setVisible(false);                    label7.setText("");                }            }            else if (type == DataUpdateListener.INFORMATION_CHANGED)            {                information = (Information) content;                String temp = label9Text;                if (information.getVerbindungsStatus()==Information.VERBUNDEN){                    temp = temp.replaceFirst("%s", information.getServerName());                }                else{                    temp = temp.replaceFirst("%s", keinServer);                }                temp = temp.replaceFirst("%d",                                         Integer.toString(ApplejuiceFassade.getInstance().                                                          getAllServer().                                                          size()));                label9.setText(temp);                temp = label10Text;                temp = temp.replaceFirst("%d", Long.toString(information.getOpenConnections()));                label10.setText(temp);            }        }        catch (Exception e)        {            if (logger.isEnabledFor(Level.ERROR))                logger.error("Unbehandelte Exception", e);        }    }