 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Stefano L. Guest
|
Posted: Fri Jan 30, 2004 10:17 am Post subject: synchronized setBounds |
|
|
Ciao a tutti.
Oggi ho provato a eseguire jlint su una mia applicazione e questo mi segnala
che il metodo setBounds della mia classe Pippo puo essere chiamato da piu'
thread ma non e' synchronized.
In effetti la mia classe Pippo estende una JLabel e nel mio codice chiamo il
metodo pippo.setBounds per cui e' giusta l'osservazione di jlint, un thread
e' il mio codice, l'altro thread e' il gestore dell'interfaccia.
Il punto e' che la mia classe Pippo non ridefinisce il metodo setBounds !
Che devo fare ? Ridefinirlo soltanto per poterlo dichiarare synchronized ?
C'e' un'altra via ?
Grazie.
--
Stefano L.
|
|
| Back to top |
|
 |
Stefano L. Guest
|
Posted: Thu Feb 12, 2004 3:12 pm Post subject: Re: synchronized setBounds |
|
|
Nessuno sa dirmi nulla ?
Consigliarmi un link su swing e thread ?
Dirmi che sono un pollo e sto sbagliando tutto ?!
--
Stefano L.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|