@Override
	public void paintComponent(Graphics g)
	{
		if(right && !left)
			camera_x+=camera_speed;
		if(!right && left)
			camera_x-=camera_speed;
		if(down && !up)
			camera_y+=camera_speed;
		if(!down && up)
			camera_y-=camera_speed;
		Graphics2D graphics = (Graphics2D)g;
		graphics.setBackground(new Color(40,130,150));
		graphics.clearRect(0, 0, getWidth(), getHeight());
		levelEditor.getGraphics().setCamera(camera_x, camera_y);
		levelEditor.getGraphics().render(level, 0, 0, graphics);
		levelEditor.getGraphics().setCamera(0, 0);
		/*for(int y=0;y<10;y++)
		{
			for(int x=0;x<10;x++)
			{
				graphics.setColor(new Color((int)(Math.random()*255),(int)(Math.random()*255),(int)(Math.random()*255)));
				graphics.drawArc(x*32 + (int)(Math.random()*10) - 5, y*32 + (int)(Math.random()*10) -5, 64, 64, (int)(Math.random()*1000), (int)(Math.random()*1000));
				graphics.fillRect(x*32+ (int)(Math.random()*10) - 5, y*32+ (int)(Math.random()*10) - 5, 24, 24);
			}
		}*/
	}