catch (InterruptedException ex) { interrupt(); }
encodedLink = URLEncoder.encode(tempLink.toString(), "ISO-8859-1");
                    public void run() {                        try {                            sleep(2000);                            SwingUtilities.invokeLater(new Runnable() {                                public void run() {                                    if (nodeObject.getClass() ==                                        DownloadMainNode.class                                        &&                                        ( (DownloadMainNode) nodeObject).                                        getType() ==                                        DownloadMainNode.ROOT_NODE) {                                        powerDownloadPanel.btnPdl.                                            setEnabled(false);                                        downloadDOOverviewPanel.setDownloadDO( ( (                                            DownloadMainNode) nodeObject).                                            getDownloadDO());                                    }                                    else if (nodeObject.getClass() ==                                             DownloadSourceDO.class) {                                        powerDownloadPanel.btnPdl.                                            setEnabled(false);                                        if ( ( (DownloadSourceDO) nodeObject).                                            getQueuePosition() <= 20) {                                            downloadDOOverviewPanel.                                                setDownloadSourceDO( (                                                DownloadSourceDO) nodeObject);                                        }                                    }                                }                            });                        }                        catch (InterruptedException ex) {                            interrupt();                        }                    }