public void finished() { SwingUtilities.invokeLater(new Runnable() { public void run() { sharePanel.getShareTable().updateUI(); sharePanel.getBtnPrioritaetAufheben().setEnabled(true); sharePanel.getBtnPrioritaetSetzen().setEnabled(true); sharePanel.getBtnNeuLaden().setEnabled(true); } }); } }; worker.start();
}.start();
	private void prioritaetAufheben(){		sharePanel.getBtnPrioritaetAufheben().setEnabled(false);		sharePanel.getBtnPrioritaetSetzen().setEnabled(false);		sharePanel.getBtnNeuLaden().setEnabled(false);        SwingWorker worker = new SwingWorker() {            public Object construct() {                try {                    Object[] values = sharePanel.getShareTable().getSelectedItems();                    if (values == null) {                        return null;                    }                    ShareNode shareNode = null;                    for (int i = 0; i < values.length; i++) {                        shareNode = (ShareNode) values[i];                        shareNode.setPriority(1);                    }                }                catch (Exception e) {                    if (logger.isEnabledFor(Level.ERROR)) {                        logger.error(ApplejuiceFassade.ERROR_MESSAGE, e);                    }                }                return null;            }            public void finished() {                SwingUtilities.invokeLater(new Runnable() {                    public void run() {                    	sharePanel.getShareTable().updateUI();                        sharePanel.getBtnPrioritaetAufheben().setEnabled(true);                        sharePanel.getBtnPrioritaetSetzen().setEnabled(true);                        sharePanel.getBtnNeuLaden().setEnabled(true);                    }                });            }        };        worker.start();	}