public void update(Observable o, Object arg) { if (selectedDownload != null && selectedDownload.equals(o)) updateButtons(); }