@Override
	public void viewChanged(GameView view)
	{
		this.remove(currentPanel);
		currentPanel=new JPanel();
		currentPanel.setPreferredSize(view.getSize());
		currentPanel.setLayout(new BorderLayout());
		
		currentPanel.add(view,BorderLayout.CENTER);
		Container c=getContentPane();
		c.setLayout(new BorderLayout());
		c.add(currentPanel,BorderLayout.CENTER);
		
		currentPanel.requestFocusInWindow();
		
		pack();
		
	}