AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

synchronized setBounds

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian)
View previous topic :: View next topic  
Author Message
Stefano L.
Guest





PostPosted: Fri Jan 30, 2004 10:17 am    Post subject: synchronized setBounds Reply with quote



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





PostPosted: Thu Feb 12, 2004 3:12 pm    Post subject: Re: synchronized setBounds Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.