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 

Problema animazione e repaint()

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






PostPosted: Sat Nov 18, 2006 9:25 pm    Post subject: Problema animazione e repaint() Reply with quote



Salve a tutti,
vi spiego il mio problema: ho un JButton che fa partire un animazione,
l'animazione è un semplice disco che si muove in un JPanel, il metodo
public void actionPerformed(ActionEvent e) del JButton richiama il
metodo che si occupa di ridisegnare (tramite repaint()) il disco con le
coordinate aggionate, il problema è che il frame non si aggiorna e il
JButton rimane premuto per tutto il tempo dell'esecuzione, alla fine di
ciò il JButton si rilascia e viene visualizato solo lo stato finale
dell'animazione, in pratica esegue ma non visualizza tutte le altre
operazioni di disegno.
Premetto che non uso i Thread, ma posso intuire che si possa trattare
di un problema di priorità.
Spero che possiate aiutarmi,
Grazie,
Riccardo.
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.