package com.roiron.spaceproject;

import javax.swing.JFrame;
import javax.swing.JPanel;

import com.roiron.spaceproject.graphic.SpacePanel;

public class Main extends JFrame{
	
	JPanel spacePanel;  //the main frame, where we draw the space
	
	
	public Main ()
	{
		spacePanel = new SpacePanel();
		this.setTitle("Space Simulation");
		this.setSize(spacePanel.getWidth(), spacePanel.getHeight());
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setLocationRelativeTo(null);
		this.setContentPane(spacePanel);
		this.setVisible(true);
		
		try {
			Thread.sleep(1000);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}
	public static void main(String[] args) {
		new Main();

	}
	

}

@@ -27,16 +27,40 @@
 oject;%0A%0A
+import java.awt.Color;%0A%0A
 import j
@@ -106,16 +106,68 @@
 Panel;%0A%0A
+import com.roiron.spaceproject.graphic.CercleShape;%0A
 import c
@@ -247,17 +247,21 @@
 ame%7B%0A%09%0A%09
-J
+Space
 Panel sp
@@ -332,16 +332,44 @@
  Main ()
+ throws InterruptedException
 %0A%09%7B%0A%09%09sp
@@ -655,17 +655,8 @@
 %0A%09%09%0A
-%09%09try %7B%0A%09
 %09%09Th
@@ -676,105 +676,299 @@
 00);
+%09
 %0A%09%09
-%7D catch (InterruptedException e) %7B%0A%09%09%09// TODO Auto-generated catch block%0A%09%09%09e.printStackTrace(
+CercleShape c= new CercleShape(spacePanel.getWidth()/2,spacePanel.getHeight()/2,0, Color.blue, spacePanel.getWidth()/4);%0A%09%09spacePanel.addElementListObject(c);%0A%09%09spacePanel.repaint();%0A%09%09Thread.sleep(1000);%0A%09%09c.setAccX(0.01);%0A%09%09while(true)%0A%09%09%7B%0A%09%09%09spacePanel.repaint();%0A%09%09%09Thread.sleep(1000
 );%0A%09
@@ -973,16 +973,19 @@
 %0A%09%09%7D%0A%09%09%0A
+%09%09%0A
 %09%7D%0A%09publ
@@ -1018,16 +1018,44 @@
 %5B%5D args)
+ throws InterruptedException
  %7B%0A%09%09new

update graphic interface and prepare the fist tests