JScrollPane aScrollPane = new JScrollPane();
aScrollPane = new JScrollPane();
    private void jbInit() throws Exception {        setLayout(new BorderLayout());        JPanel topPanel = new JPanel();        topPanel.setLayout(new GridBagLayout());        JPanel bottomPanel = new JPanel();        bottomPanel.setLayout(new BorderLayout());        item1 = new JMenuItem("Abbrechen");        item2 = new JMenuItem("Pause/Fortsetzen");        item4 = new JMenuItem("Umbenennen");        item5 = new JMenuItem("Zielordner ndern");        item6 = new JMenuItem("Fertige bertragungen entfernen");        //todo        item4.setEnabled(false);        item5.setEnabled(false);        //        popup.add(item1);        popup.add(item2);        popup.add(item4);        popup.add(item5);        popup.add(item6);        item1.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent ae) {                Object[] selectedItems = getSelectedDownloadItems();                if (selectedItems != null && selectedItems.length != 0) {                    int result = JOptionPane.showConfirmDialog(null, "Wollen Sie wirklich diese Downloads abbrechen", "Besttigung",                            JOptionPane.YES_NO_OPTION);                    if (result == JOptionPane.YES_OPTION) {                        for (int i = 0; i < selectedItems.length; i++) {                            if (((DownloadNode) selectedItems[i]).getNodeType() == DownloadNode.DOWNLOAD_NODE) {                                DownloadDO downloadDO = ((DownloadNode) selectedItems[i]).getDownloadDO();                                ApplejuiceFassade.getInstance().cancelDownload(downloadDO.getId());                            }                        }                    }                }            }        });        item2.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent ae) {                Object[] selectedItems = getSelectedDownloadItems();                if (selectedItems != null && selectedItems.length != 0) {                    for (int i = 0; i < selectedItems.length; i++) {                        if (((DownloadNode) selectedItems[i]).getNodeType() == DownloadNode.DOWNLOAD_NODE) {                            DownloadDO downloadDO = ((DownloadNode) selectedItems[i]).getDownloadDO();                            if (downloadDO.getStatus() == DownloadDO.PAUSIERT) {                                ApplejuiceFassade.getInstance().resumeDownload(downloadDO.getId());                            }                            else {                                ApplejuiceFassade.getInstance().pauseDownload(downloadDO.getId());                            }                        }                    }                }            }        });        item6.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent ae) {                ApplejuiceFassade.getInstance().cleanDownloadList();            }        });        GridBagConstraints constraints = new GridBagConstraints();        constraints.anchor = GridBagConstraints.NORTH;        constraints.fill = GridBagConstraints.BOTH;        constraints.gridx = 0;        constraints.gridy = 0;        constraints.gridwidth = 3;        constraints.gridheight = 1;        JPanel tempPanel = new JPanel();        tempPanel.setLayout(new BorderLayout());        tempPanel.add(linkLabel, BorderLayout.WEST);        tempPanel.add(downloadLink, BorderLayout.CENTER);        tempPanel.add(btnStartDownload, BorderLayout.EAST);        topPanel.add(tempPanel, constraints);        constraints.gridwidth = 3;        constraints.gridx = 0;        constraints.gridy = 1;        constraints.weighty = 1;        constraints.weightx = 1;        downloadModel = new DownloadModel();        downloadTable = new JTreeTable(downloadModel);        DownloadTableCellRenderer renderer = new DownloadTableCellRenderer();        for (int i = 1; i < downloadTable.getColumnModel().getColumnCount(); i++) {            downloadTable.getColumnModel().getColumn(i).setCellRenderer(renderer);        }        btnStartDownload.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent ae) {                String link = downloadLink.getText();                if (link.length() != 0) {                    ApplejuiceFassade.getInstance().processLink(link);                    downloadLink.setText("");                }            }        });        downloadTable.addMouseListener(new MouseAdapter() {            public void mouseClicked(MouseEvent e) {                super.mouseClicked(e);                Point p = e.getPoint();                int selectedRow = downloadTable.rowAtPoint(p);                DownloadNode node = (DownloadNode) ((TreeTableModelAdapter) downloadTable.getModel()).nodeForRow(selectedRow);                if (downloadTable.columnAtPoint(p) != 0) {                    if (e.getClickCount() == 2) {                        ((TreeTableModelAdapter) downloadTable.getModel()).expandOrCollapseRow(selectedRow);                    }                }                if (node.getNodeType() == DownloadNode.DOWNLOAD_NODE) {                    powerDownloadPanel.btnPdl.setEnabled(true);                    downloadDOOverviewPanel.setDownloadDO(node.getDownloadDO());                }                else {                    powerDownloadPanel.btnPdl.setEnabled(false);                }            }            public void mousePressed(MouseEvent me) {                super.mousePressed(me);                maybeShowPopup(me);            }            public void mouseReleased(MouseEvent e) {                super.mouseReleased(e);                maybeShowPopup(e);            }            private void maybeShowPopup(MouseEvent e) {                if (e.isPopupTrigger()) {                    popup.show(downloadTable, e.getX(), e.getY());                }            }        });        JScrollPane aScrollPane = new JScrollPane();        aScrollPane.getViewport().add(downloadTable);        topPanel.add(aScrollPane, constraints);        bottomPanel.add(powerDownloadPanel, BorderLayout.WEST);        bottomPanel.add(downloadDOOverviewPanel, BorderLayout.CENTER);        add(topPanel, BorderLayout.CENTER);        add(bottomPanel, BorderLayout.SOUTH);        ApplejuiceFassade.getInstance().addDataUpdateListener(this, DataUpdateListener.DOWNLOAD_CHANGED);    }