panel5.add(cmbUploadPrio, constraints);
    private void init() throws Exception {        port.setDocument(new NumberInputVerifier());        xmlPort.setDocument(new NumberInputVerifier());        temp.setText(ajSettings.getTempDir());        temp.setEditable(false);        temp.setBackground(Color.WHITE);        incoming.setText(ajSettings.getIncomingDir());        incoming.setEditable(false);        incoming.setBackground(Color.WHITE);        port.setText(Long.toString(ajSettings.getPort()));        xmlPort.setText(Long.toString(ajSettings.getXMLPort()));        nick.setText(ajSettings.getNick());        port.addFocusListener(new FocusAdapter() {            public void focusLost(FocusEvent e) {                if (ajSettings.getPort() != Integer.parseInt(port.getText()))                {                    dirty = true;                    ajSettings.setPort(Integer.parseInt(port.getText()));                }            }        });        xmlPort.addFocusListener(new FocusAdapter() {            public void focusLost(FocusEvent e) {                if (ajSettings.getXMLPort() != Long.parseLong(xmlPort.getText()))                {                    dirty = true;                    xmlPortDirty = true;                    remote.setXmlPort(Integer.parseInt(xmlPort.getText()));                    ajSettings.setXMLPort(Long.parseLong(xmlPort.getText()));                }            }        });        nick.addFocusListener(new FocusAdapter() {            public void focusLost(FocusEvent e) {                if (ajSettings.getNick().compareTo(nick.getText()) != 0)                {                    dirty = true;                    ajSettings.setNick(nick.getText());                }            }        });        JPanel panel8 = new JPanel(new FlowLayout(FlowLayout.RIGHT));        panel8.add(new JLabel("Logging: "));        LanguageSelector languageSelector = LanguageSelector.getInstance();        Level logLevel = PropertiesManager.getOptionsManager().getLogLevel();        LevelItem[] levelItems = new LevelItem[2];//{ "Info", "Debug"};        levelItems[0] = new LevelItem(Level.INFO, ZeichenErsetzer.korrigiereUmlaute(                languageSelector.getFirstAttrbuteByTagName(new String[]{"javagui", "options", "logging", "info"})));        levelItems[1] = new LevelItem(Level.DEBUG, ZeichenErsetzer.korrigiereUmlaute(                languageSelector.getFirstAttrbuteByTagName(new String[]{"javagui", "options", "logging", "debug"})));        cmbLog = new JComboBox(levelItems);        cmbLog.addItemListener(new ItemListener() {            public void itemStateChanged(ItemEvent e) {                dirty = true;            }        });        int index = 0;        if (logLevel == Level.INFO)            index = 0;        else if (logLevel == Level.DEBUG)            index = 1;        cmbLog.setSelectedIndex(index);        panel8.add(cmbLog);        setLayout(new BorderLayout());        port.setHorizontalAlignment(JLabel.RIGHT);        xmlPort.setHorizontalAlignment(JLabel.RIGHT);        JPanel panel6 = new JPanel(new GridBagLayout());        label1.setText(ZeichenErsetzer.korrigiereUmlaute(languageSelector.                                                         getFirstAttrbuteByTagName(new String[]{"einstform", "Label2",                                                                                                "caption"})));        label2.setText(ZeichenErsetzer.korrigiereUmlaute(languageSelector.                                                         getFirstAttrbuteByTagName(new String[]{"einstform", "Label7",                                                                                                "caption"})));        label3.setText(ZeichenErsetzer.korrigiereUmlaute(languageSelector.                                                         getFirstAttrbuteByTagName(new String[]{"einstform", "Label3",                                                                                                "caption"})));        label4.setText(ZeichenErsetzer.korrigiereUmlaute(languageSelector.                                                         getFirstAttrbuteByTagName(new String[]{"einstform", "Label8",                                                                                                "caption"})));        label5.setText(ZeichenErsetzer.korrigiereUmlaute(languageSelector.                                                         getFirstAttrbuteByTagName(new String[]{"einstform", "Label14",                                                                                                "caption"})));        label6.setText(ZeichenErsetzer.korrigiereUmlaute(languageSelector.                                                         getFirstAttrbuteByTagName(new String[]{"javagui", "options",                                                                                                "standard", "xmlport"})));        IconManager im = IconManager.getInstance();        ImageIcon icon = im.getIcon("hint");        hint1 = new JLabel(icon) {            public JToolTip createToolTip() {                MultiLineToolTip tip = new MultiLineToolTip();                tip.setComponent(this);                return tip;            }        };        hint2 = new JLabel(icon) {            public JToolTip createToolTip() {                MultiLineToolTip tip = new MultiLineToolTip();                tip.setComponent(this);                return tip;            }        };        hint3 = new JLabel(icon) {            public JToolTip createToolTip() {                MultiLineToolTip tip = new MultiLineToolTip();                tip.setComponent(this);                return tip;            }        };        hint4 = new JLabel(icon) {            public JToolTip createToolTip() {                MultiLineToolTip tip = new MultiLineToolTip();                tip.setComponent(this);                return tip;            }        };        hint5 = new JLabel(icon) {            public JToolTip createToolTip() {                MultiLineToolTip tip = new MultiLineToolTip();                tip.setComponent(this);                return tip;            }        };        hint6 = new JLabel(icon) {            public JToolTip createToolTip() {                MultiLineToolTip tip = new MultiLineToolTip();                tip.setComponent(this);                return tip;            }        };        hint1.setToolTipText(ZeichenErsetzer.korrigiereUmlaute(languageSelector.                                                               getFirstAttrbuteByTagName(new String[]{"javagui", "options",                                                                                                      "standard", "ttipp_temp"})));        hint2.setToolTipText(ZeichenErsetzer.korrigiereUmlaute(languageSelector.                                                               getFirstAttrbuteByTagName(new String[]{"javagui", "options",                                                                                                      "standard", "ttipp_port"})));        hint3.setToolTipText(ZeichenErsetzer.korrigiereUmlaute(languageSelector.                                                               getFirstAttrbuteByTagName(new String[]{"javagui", "options",                                                                                                      "standard", "ttipp_nick"})));        hint4.setToolTipText(ZeichenErsetzer.korrigiereUmlaute(languageSelector.                                                               getFirstAttrbuteByTagName(new String[]{"einstform", "Label1",                                                                                                      "caption"})));        hint5.setToolTipText(ZeichenErsetzer.korrigiereUmlaute(languageSelector.                                                               getFirstAttrbuteByTagName(new String[]{"javagui", "options",                                                                                                      "logging", "ttip"})));        hint6.setToolTipText(ZeichenErsetzer.korrigiereUmlaute(languageSelector.                                                               getFirstAttrbuteByTagName(new String[]{"javagui", "options",                                                                                                      "standard", "ttipp_xmlport"})));        for (int i = 1; i < 11; i++)        {            cmbUploadPrio.addItem(new Integer(i));        }        Icon icon2 = im.getIcon("folderopen");        DirectoryChooserMouseAdapter dcMouseAdapter = new DirectoryChooserMouseAdapter();        openTemp = new JLabel(icon2);        openTemp.addMouseListener(dcMouseAdapter);        openIncoming = new JLabel(icon2);        openIncoming.addMouseListener(dcMouseAdapter);        GridBagConstraints constraints = new GridBagConstraints();        constraints.anchor = GridBagConstraints.NORTH;        constraints.fill = GridBagConstraints.BOTH;        constraints.gridx = 0;        constraints.gridy = 0;        constraints.insets.top = 5;        JPanel panel1 = new JPanel(new GridBagLayout());        JPanel panel2 = new JPanel(new GridBagLayout());        JPanel panel3 = new JPanel(new GridBagLayout());        JPanel panel4 = new JPanel(new GridBagLayout());        JPanel panel5 = new JPanel(new GridBagLayout());        JPanel panel7 = new JPanel(new GridBagLayout());        constraints.insets.right = 5;        constraints.insets.left = 4;        panel1.add(label1, constraints);        panel2.add(label2, constraints);        panel3.add(label3, constraints);        panel4.add(label4, constraints);        panel5.add(label5, constraints);        panel7.add(label6, constraints);        constraints.insets.left = 0;        constraints.insets.right = 2;        constraints.gridx = 1;        constraints.weightx = 1;        panel1.add(temp, constraints);        panel2.add(incoming, constraints);        panel3.add(port, constraints);        panel7.add(xmlPort, constraints);        panel4.add(nick, constraints);        panel5.add(cmbUploadPrio, constraints);        constraints.gridx = 2;        constraints.weightx = 0;        panel1.add(openTemp, constraints);        panel2.add(openIncoming, constraints);        constraints.gridx = 0;        constraints.gridy = 0;        constraints.weightx = 1;        panel6.add(panel1, constraints);        constraints.gridy = 1;        panel6.add(panel2, constraints);        constraints.gridy = 2;        panel6.add(panel3, constraints);        constraints.gridy = 3;        panel6.add(panel7, constraints);        constraints.gridy = 4;        panel6.add(panel4, constraints);        constraints.gridy = 5;        panel6.add(panel5, constraints);        constraints.insets.top = 10;        constraints.gridx = 1;        constraints.gridy = 0;        constraints.weightx = 0;        panel6.add(hint1, constraints);        constraints.gridy = 2;        panel6.add(hint2, constraints);        constraints.gridy = 3;        panel6.add(hint6, constraints);        constraints.gridy = 4;        panel6.add(hint3, constraints);        constraints.gridy = 6;        constraints.gridx = 0;        constraints.gridwidth = 1;        panel6.add(panel8, constraints);        constraints.gridx = 1;        panel6.add(hint5, constraints);        add(panel6, BorderLayout.NORTH);    }