I have animation and I need it to periodically do something. How can I achieve that? I guess it could be done with another thread and sleep him for specified time. However I’m not sure about this solution.
Animation is very simple.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
if you want to moving with something in the Swing then you have to use javax.swing.Timer, example here