SkinLookAndFeel.enable();
    private void init() throws Exception {        setTitle("AppleJuice Client");        plugins = new HashSet();        IconManager im = IconManager.getInstance();        setIconImage(im.getIcon("applejuice").getImage());        menuItemOptionen.setIcon(im.getIcon("optionen"));        menuItemUeber.setIcon(im.getIcon("info"));        setJMenuBar(createMenuBar());        if (PropertiesManager.getOptionsManager().isThemesSupported()){            SkinLookAndFeel.enable();            SwingUtilities.updateComponentTreeUI(AppleJuiceDialog.this);        }        String path = System.getProperty("user.dir") + File.separator + "language" +                File.separator;        path += PropertiesManager.getOptionsManager().getSprache() + ".xml";        registerPane = new RegisterPanel(this);        LanguageSelector.getInstance(path);        addWindowListener(                new WindowAdapter() {                    public void windowClosing(WindowEvent evt) {                        closeDialog(evt);                    }                });        getContentPane().setLayout(new BorderLayout());        registerPane.addChangeListener(new ChangeListener() {            public void stateChanged(ChangeEvent e) {                RegisterI register = (RegisterI) registerPane.getSelectedComponent();                register.registerSelected();            }        });        getContentPane().add(registerPane, BorderLayout.CENTER);        JPanel panel = new JPanel(new GridBagLayout());        for (int i = 0; i < statusbar.length; i++)        {            statusbar[i] = new JLabel("            ");            statusbar[i].setHorizontalAlignment(JLabel.RIGHT);            statusbar[i].setBorder(new BevelBorder(BevelBorder.LOWERED));            statusbar[i].setFont(new java.awt.Font("SansSerif", 0, 11));        }//        pause.setFont(new java.awt.Font("SansSerif", 0, 11));        memory.setIcon(IconManager.getInstance().getIcon("mmonitor"));        memory.addActionListener(new ActionListener(){            public void actionPerformed(ActionEvent ae){                if (memoryMonitorDialog==null){                    memoryMonitorDialog = new MemoryMonitorDialog(AppleJuiceDialog.this);                    Point loc = memory.getLocationOnScreen();                    loc.setLocation(loc.getX()-memoryMonitorDialog.getWidth(),                                    loc.getY()-memoryMonitorDialog.getHeight());                    memoryMonitorDialog.setLocation(loc);                }                if (!memoryMonitorDialog.isVisible()){                    memoryMonitorDialog.show();                }            }        });        sound.addActionListener(new ActionListener(){            {                if (PropertiesManager.getOptionsManager().isSoundEnabled()){                    sound.setIcon(IconManager.getInstance().getIcon("soundon"));                }                else{                    sound.setIcon(IconManager.getInstance().getIcon("soundoff"));                }            }            public void actionPerformed(ActionEvent ae){                OptionsManager om = PropertiesManager.getOptionsManager();                om.enableSound(!om.isSoundEnabled());                if (om.isSoundEnabled()){                    sound.setIcon(IconManager.getInstance().getIcon("soundon"));                }                else{                    sound.setIcon(IconManager.getInstance().getIcon("soundoff"));                }            }        });        GridBagConstraints constraints = new GridBagConstraints();        constraints.anchor = GridBagConstraints.NORTH;        constraints.fill = GridBagConstraints.BOTH;        constraints.gridx = 0;        constraints.gridy = 0;        panel.add(statusbar[0], constraints);        constraints.gridx = 1;        constraints.weightx = 1;        panel.add(statusbar[1], constraints);        constraints.weightx = 0;        constraints.gridx = 2;        panel.add(statusbar[2], constraints);        constraints.gridx = 3;        panel.add(statusbar[3], constraints);        constraints.gridx = 4;        panel.add(statusbar[4], constraints);        constraints.gridx = 5;        panel.add(statusbar[5], constraints);        constraints.gridx = 6;        panel.add(memory, constraints);        constraints.gridx = 7;        panel.add(sound, constraints);        getContentPane().add(panel, BorderLayout.SOUTH);        //Tooltipps einstellen        ToolTipManager.sharedInstance().setInitialDelay(1);        ToolTipManager.sharedInstance().setDismissDelay(50000);        fireLanguageChanged();        ApplejuiceFassade dm = ApplejuiceFassade.getInstance();        dm.addDataUpdateListener(this,                                 DataUpdateListener.INFORMATION_CHANGED);        dm.startXMLCheck();    }