temp = temp.replaceFirst("%d", "0"); temp = temp.replaceFirst("%d", "0"); temp = temp.replaceFirst("%s", "0 MB");
pos = temp.indexOf("%d"); if (pos != -1){ temp.replace(pos, pos + 2, "0"); } pos = temp.indexOf("%d"); if (pos != -1){ temp.replace(pos, pos + 2, "0"); } pos = temp.indexOf("%s"); if (pos != -1){ temp.replace(pos, pos + 2, "0 MB"); }
    public void fireLanguageChanged() {        try {            keinServer = languageSelector.getFirstAttrbuteByTagName(new String[] {                "javagui", "mainform", "keinserver"});            netzwerk.setText("<html><font><h2>" +                             ZeichenErsetzer.korrigiereUmlaute(languageSelector.                getFirstAttrbuteByTagName(new String[] {"mainform", "html7"})) +                             "</h2></font></html>");            label8.setText("<html><font><h2>" +                           ZeichenErsetzer.korrigiereUmlaute(languageSelector.                getFirstAttrbuteByTagName(new String[] {"mainform", "html13"})) +                           "</h2></font></html>");            deinClient.setText("<html><font><h2>" +                               ZeichenErsetzer.korrigiereUmlaute(                languageSelector.                getFirstAttrbuteByTagName(new String[] {"mainform", "html1"})) +                               "</h2></font></html>");            firewallWarning = ZeichenErsetzer.korrigiereUmlaute(                languageSelector.                getFirstAttrbuteByTagName(new String[] {"mainform",                                          "firewallwarning",                                          "caption"}));            if (netInfo != null && netInfo.isFirewalled()) {                warnungen.setVisible(true);                warnungIcon.setVisible(true);                label7.setText(firewallWarning);            }            else {                warnungen.setVisible(false);                warnungIcon.setVisible(false);                label7.setText("");            }            label9Text = ZeichenErsetzer.korrigiereUmlaute(languageSelector.                getFirstAttrbuteByTagName(new String[] {"mainform", "html10"}));            String temp = label9Text;            temp = temp.replaceFirst("%s", keinServer);            temp = temp.replaceFirst("%d",                                     Integer.toString(ApplejuiceFassade.                getInstance().                getAllServer().                size()));            label9.setText(temp);            label10Text = ZeichenErsetzer.korrigiereUmlaute(languageSelector.                getFirstAttrbuteByTagName(new String[] {"mainform", "status",                                          "status0"}));            temp = label10Text;            if (information != null) {                temp = temp.replaceFirst("%d",                                         Long.toString(information.getOpenConnections()));            }            else {                temp = temp.replaceFirst("%d", "0");            }            label10.setText(temp);            label6Text = ZeichenErsetzer.korrigiereUmlaute(languageSelector.                getFirstAttrbuteByTagName(new                                          String[] {"mainform", "status",                                          "status2"}));            temp = label6Text;            if (netInfo != null) {                temp = temp.replaceFirst("%d",                                         netInfo.getAJUserGesamtAsStringWithPoints());                temp = temp.replaceFirst("%d",                                         netInfo.getAJAnzahlDateienAsStringWithPoints());                temp = temp.replaceFirst("%s",                                         netInfo.getAJGesamtShareWithPoints(0));            }            else {                temp = temp.replaceFirst("%d", "0");                temp = temp.replaceFirst("%d", "0");                temp = temp.replaceFirst("%s", "0 MB");            }            label6.setText(temp);            warnungen.setText("<html><font><h2>" +                              ZeichenErsetzer.korrigiereUmlaute(                languageSelector.                getFirstAttrbuteByTagName(new String[] {"mainform", "html15"})) +                              "</h2></font></html>");        }        catch (Exception e) {            if (logger.isEnabledFor(Level.ERROR)) {                logger.error("Unbehandelte Exception", e);            }        }    }