statusbar = new JLabel();
statusbar = new JLabel("eXist Admin Client connected - " + client.USER + "@" + client.URI);
    private void setupComponents() {        setJMenuBar(createMenuBar());                // create the toolbar        JToolBar toolbar = new JToolBar();        URL url = getClass().getResource("icons/Up24.gif");        JButton button = new JButton(new ImageIcon(url));        button.setToolTipText("Go to parent collection");        button.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent e) {                goUpAction(e);            }        });        toolbar.add(button);                url = getClass().getResource("icons/Refresh24.gif");        button = new JButton(new ImageIcon(url));        button.setToolTipText("Refresh collection view");        button.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent e) {                try {                    client.reloadCollection();                } catch (XMLDBException e1) {                }            }        });        toolbar.add(button);        toolbar.addSeparator();                url = getClass().getResource("icons/New24.gif");        button = new JButton(new ImageIcon(url));        button.setToolTipText("Create new collection");        button.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent e) {                newCollectionAction(e);            }        });        toolbar.add(button);                url = getClass().getResource("icons/Add24.gif");        button = new JButton(new ImageIcon(url));        button.setToolTipText("Stores one or more files to the database");        button.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent e) {                uploadAction(e);            }        });        toolbar.add(button);                url = getClass().getResource("icons/Delete24.gif");        button = new JButton(new ImageIcon(url));        button.setToolTipText("Delete selected files or collections");        button.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent e) {                removeAction(e);            }        });        toolbar.add(button);                url = getClass().getResource("icons/Preferences24.gif");        button = new JButton(new ImageIcon(url));        button.setToolTipText("Edit owners/permissions for selected resource");        button.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent e) {                setPermAction(e);            }        });        toolbar.add(button);                toolbar.addSeparator();        url = getClass().getResource("icons/Export24.gif");        button = new JButton(new ImageIcon(url));        button.setToolTipText("Create backup");        button.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent e) {                backupAction(e);            }        });        toolbar.add(button);                url = getClass().getResource("icons/Import24.gif");        button = new JButton(new ImageIcon(url));        button.setToolTipText("Restore files from backup");        button.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent e) {                restoreAction(e);            }        });        toolbar.add(button);                toolbar.addSeparator();        url = getClass().getResource("icons/keyring-small.png");        button = new JButton(new ImageIcon(url));        button.setToolTipText("Manage users");        button.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent e) {                newUserAction(e);            }        });        toolbar.add(button);                url = getClass().getResource("icons/Find24.gif");        button = new JButton(new ImageIcon(url));        button.setToolTipText("Query the database with XPath");        button.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent e) {                findAction(e);            }        });        toolbar.add(button);                // the split pane separates the resource view table from the shell        JSplitPane split = new JSplitPane(JSplitPane.VERTICAL_SPLIT);        split.setResizeWeight(0.5);                // create table for resources and collections        fileman = new JTable();        fileman.setModel(resources);        fileman.addMouseListener(new TableMouseListener());                ResourceTableCellRenderer renderer = new ResourceTableCellRenderer();        fileman.setDefaultRenderer(Object.class, renderer);        JScrollPane scroll = new JScrollPane(fileman);        scroll.setMinimumSize(new Dimension(300, 150));        split.setLeftComponent(scroll);                shellPopup = new JPopupMenu("Console Menu");        shellPopup.add(new JMenuItem(CUT)).addActionListener(this);        shellPopup.add(new JMenuItem(COPY)).addActionListener(this);        shellPopup.add(new JMenuItem(PASTE)).addActionListener(this);                // shell window        doc = new DefaultStyledDocument();        shell = new JTextPane(doc);        shell.setContentType("text/plain; charset=UTF-8");        shell.setFont(new Font("Monospaced", Font.PLAIN, 12));        shell.setMargin(new Insets(7, 5, 7, 5));        shell.addKeyListener(this);        shell.addMouseListener(this);                scroll = new JScrollPane(shell);                split.setRightComponent(scroll);                statusbar = new JLabel();        statusbar.setMinimumSize(new Dimension(400, 15));        statusbar.setBorder(BorderFactory                .createBevelBorder(BevelBorder.LOWERED));                getContentPane().add(split, BorderLayout.CENTER);        getContentPane().add(toolbar, BorderLayout.NORTH);        getContentPane().add(statusbar, BorderLayout.SOUTH);    }