Map downloads = ApplejuiceFassade.getInstance().getDownloadsSnapshot(); ((DownloadRootNode) downloadPanel.getDownloadModel().getRoot()).setDownloadMap(downloads); DownloadDirectoryNode.setDownloads(downloads);
	public void componentSelected() {		try {			downloadPanel.getDownloadDOOverviewPanel().enableHoleListButton(false);			panelSelected = true;			if (!initialized) {				initialized = true;				int width = downloadPanel.getScrollPane().getWidth() - 18;				PositionManager pm = PositionManagerImpl.getInstance();				TableColumn[] columns = downloadPanel.getDownloadTableColumns();				if (pm.isLegal()) {					int[] widths = pm.getDownloadWidths();					boolean[] visibilies = pm.getDownloadColumnVisibilities();					int[] indizes = pm.getDownloadColumnIndizes();					ArrayList visibleColumns = new ArrayList();					for (int i = 0; i < columns.length; i++) {						columns[i].setPreferredWidth(widths[i]);						downloadPanel.getDownloadTable().							removeColumn(columns[i]);						if (visibilies[i]) {							visibleColumns.add(columns[i]);						}					}					int pos = -1;					for (int i = 0; i < visibleColumns.size(); i++) {						for (int x = 0; x < columns.length; x++) {							if (visibleColumns.contains(columns[x])									&& indizes[x] == pos + 1) {								downloadPanel.getDownloadTable().addColumn(columns[x]);								pos++;								break;							}						}					}				} else {					for (int i = 0; i < columns.length; i++) {						columns[i].setPreferredWidth(width / columns.length);					}				}				downloadPanel.getDownloadTable().setAutoResizeMode(JTable.AUTO_RESIZE_OFF);				int loc = (int) ((downloadPanel.getSplitPane().getHeight()						- downloadPanel.getSplitPane().getDividerSize() - downloadPanel.getPowerDownloadPanel()						.getPreferredSize().height));				downloadPanel.getSplitPane().setDividerLocation(loc);			}			downloadPanel.getDownloadTable().updateUI();		} catch (Exception e) {			if (logger.isEnabledFor(Level.ERROR)) {				logger.error(ApplejuiceFassade.ERROR_MESSAGE, e);			}		}	}