http://docs.oracle.com/javase/1.5.0/docs...Timer.html
Timer timer;
int fps = 60;
ActionListener todo = new ActionListener ()
{
public void actionPerformed (ActionEvent event)
{
/* traitement
* [...]
*/
}
};
timer = new Timer(1000/fps, todo);
?
Timer timer;
int fps = 60;
ActionListener todo = new ActionListener ()
{
public void actionPerformed (ActionEvent event)
{
/* traitement
* [...]
*/
}
};
timer = new Timer(1000/fps, todo);
?