Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.TimerTask;
- public class MyTimerTask extends TimerTask
- {
- @Override
- public void run()
- {
- for(int i=1;i<Okno.planets.size();i++){
- double c=Okno.planets.get(i).getPosition();
- double t = Okno.planets.get(i).getTerm();
- Okno.planets.get(i).setPosition(c+365/t*0.4);
- //System.out.println(Okno.planets.get(i).getPosition());
- Okno.panel.repaint();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement