title: Java animation periodical action
body: <p>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. </p>
  
  <p>Animation is very simple.</p>