} else{ downloadVisibilities = new boolean[10]; for (int i=0; i<downloadVisibilities.length; i++){ downloadVisibilities[i] = true; } uploadVisibilities = new boolean[7]; for (int i=0; i<uploadVisibilities.length; i++){ uploadVisibilities[i] = true; }
    protected void init(){        try{            String temp = getFirstAttrbuteByTagName(new String[]{"options", "location", "main", "x"});            if (temp.length()!=0){                legal = true;                int mainX = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "main", "x"}));                int mainY = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "main", "y"}));                mainXY = new Point(mainX, mainY);                int mainWidth = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "main", "width"}));                int mainHeight = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "main", "height"}));                mainDimension = new Dimension(mainWidth, mainHeight);                downloadWidths = new int[10];                downloadWidths[0] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "download", "column0"}));                downloadWidths[1] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "download", "column1"}));                downloadWidths[2] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "download", "column2"}));                downloadWidths[3] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "download", "column3"}));                downloadWidths[4] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "download", "column4"}));                downloadWidths[5] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "download", "column5"}));                downloadWidths[6] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "download", "column6"}));                downloadWidths[7] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "download", "column7"}));                downloadWidths[8] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "download", "column8"}));                downloadWidths[9] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "download", "column9"}));                uploadWidths = new int[7];                uploadWidths[0] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "upload", "column0"}));                uploadWidths[1] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "upload", "column1"}));                uploadWidths[2] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "upload", "column2"}));                uploadWidths[3] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "upload", "column3"}));                uploadWidths[4] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "upload", "column4"}));                uploadWidths[5] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "upload", "column5"}));                uploadWidths[6] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "upload", "column6"}));                serverWidths = new int[4];                serverWidths[0] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "server", "column0"}));                serverWidths[1] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "server", "column1"}));                serverWidths[2] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "server", "column2"}));                serverWidths[3] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "server", "column3"}));                shareWidths = new int[3];                shareWidths[0] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "share", "column0"}));                shareWidths[1] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "share", "column1"}));                shareWidths[2] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "share", "column2"}));                downloadVisibilities = new boolean[10];                downloadVisibilities[0] = true;                downloadVisibilities[1] = new Boolean(getFirstAttrbuteByTagName(new String[]{"options", "visibility", "download", "column1"})).booleanValue();                downloadVisibilities[2] = new Boolean(getFirstAttrbuteByTagName(new String[]{"options", "visibility", "download", "column2"})).booleanValue();                downloadVisibilities[3] = new Boolean(getFirstAttrbuteByTagName(new String[]{"options", "visibility", "download", "column3"})).booleanValue();                downloadVisibilities[4] = new Boolean(getFirstAttrbuteByTagName(new String[]{"options", "visibility", "download", "column4"})).booleanValue();                downloadVisibilities[5] = new Boolean(getFirstAttrbuteByTagName(new String[]{"options", "visibility", "download", "column5"})).booleanValue();                downloadVisibilities[6] = new Boolean(getFirstAttrbuteByTagName(new String[]{"options", "visibility", "download", "column6"})).booleanValue();                downloadVisibilities[7] = new Boolean(getFirstAttrbuteByTagName(new String[]{"options", "visibility", "download", "column7"})).booleanValue();                downloadVisibilities[8] = new Boolean(getFirstAttrbuteByTagName(new String[]{"options", "visibility", "download", "column8"})).booleanValue();                downloadVisibilities[9] = new Boolean(getFirstAttrbuteByTagName(new String[]{"options", "visibility", "download", "column9"})).booleanValue();                uploadVisibilities = new boolean[10];                uploadVisibilities[0] = true;                uploadVisibilities[1] = new Boolean(getFirstAttrbuteByTagName(new String[]{"options", "visibility", "upload", "column1"})).booleanValue();                uploadVisibilities[2] = new Boolean(getFirstAttrbuteByTagName(new String[]{"options", "visibility", "upload", "column2"})).booleanValue();                uploadVisibilities[3] = new Boolean(getFirstAttrbuteByTagName(new String[]{"options", "visibility", "upload", "column3"})).booleanValue();                uploadVisibilities[4] = new Boolean(getFirstAttrbuteByTagName(new String[]{"options", "visibility", "upload", "column4"})).booleanValue();                uploadVisibilities[5] = new Boolean(getFirstAttrbuteByTagName(new String[]{"options", "visibility", "upload", "column5"})).booleanValue();                uploadVisibilities[6] = new Boolean(getFirstAttrbuteByTagName(new String[]{"options", "visibility", "upload", "column6"})).booleanValue();            }            boolean use = new Boolean(getFirstAttrbuteByTagName(new String[]{"options", "proxy", "use"})).booleanValue();            String host = getFirstAttrbuteByTagName(new String[]{"options", "proxy", "host"});            int port;            try{                port = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "proxy", "port"}));            }            catch (Exception e){                port = -1;            }            String userpass = getFirstAttrbuteByTagName(new String[]{"options", "proxy", "userpass"});            proxySettings = new ProxySettings(use, host, port, userpass);        }        catch (Exception e)        {            AppleJuiceDialog.rewriteProperties = true;            if (logger.isEnabledFor(Level.ERROR))                logger.error("properties.xml neu erstellt", e);            AppleJuiceDialog.closeWithErrormessage("Fehler beim Zugriff auf die properties.xml. " +                                                   "Die Datei wird neu erstellt.", false);        }    }