DISEGNARE IMMAGINI
3) ..e gli si dice di attendere il caricamento di tale immagine, usando l'ID assegnato
try { mt.waitForID(1); }catch (InterruptedException e) {}
Occorre un blocco try/catch perché l'attesa potrebbe essere interrotta da un'eccezione.
Se si devono attendere molte immagini:
try { mt.waitForAll(); }catch (InterruptedException e) {}