int result = JOptionPane.showConfirmDialog(null, "Wollen Sie wirklich diese Downloads abbrechen", "Besttigung",
int result = JOptionPane.showConfirmDialog(AppleJuiceDialog.getApp(), downloadAbbrechen, dialogTitel,
            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) {                        ArrayList indizesAbbrechen = new ArrayList();                        for (int i = 0; i < selectedItems.length; i++) {                            if (selectedItems[i].getClass() == DownloadMainNode.class) {                                DownloadDO downloadDO = ((DownloadMainNode) selectedItems[i]).getDownloadDO();                                indizesAbbrechen.add(new Integer(downloadDO.getId()));                            }                        }                        int size = indizesAbbrechen.size();                        if (size > 0) {                            int[] abbrechen = new int[size];                            for (int i = 0; i < size; i++) {                                abbrechen[i] = ((Integer) indizesAbbrechen.get(i)).intValue();                            }                            ApplejuiceFassade.getInstance().cancelDownload(abbrechen);                        }                    }                }            }