package main; import main.Ecran.*; public class Rotation extends Thread{ Solide S; Ecran E; Rotation(Solide S, Ecran E){ this.S=S; this.E=E; } public void run(){ boolean arret=false; Translate T=E.new Translate(S,150,100,10); E.panneau.repaint(); while(!arret){ Rotate R=E.new Rotate(E.new Point(-450,-100,-100),(double)0,(double)Math.PI/10000,(double)Math.PI/99,S); System.out.println("Rotation"); E.panneau.repaint();//BADASS //E.repaint();//moins badass try { sleep(1000); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } }