public OceanLifeGui (String test, Ocean ocean) {
		super(test);
		width = ocean.getWidth();
		depth = ocean.getDepth();
		setLayout(null);
		setResizable(false);
		

		setLocation((((int)dim.getWidth() - width) / 2),(((int)dim.getHeight()- depth) / 2));
		
		

		
		
		PaintArea oceanArea = new PaintArea(ocean);
		oceanArea.setVisible(true);

		if(width < 800){
			oceanArea.setBounds(((800 - width) / 2), 60, width, depth);
		}
		else{
			oceanArea.setBounds(0, 60, width, depth);
		}
		add(oceanArea);
		
		ButtonsPanel buttonsView = new ButtonsPanel(ocean, oceanArea);
		
		if (width < 800){
			buttonsView.setBounds(0, 0, widthSafe, 60);
		}
		else {
			buttonsView.setBounds(0, 0, width, 60);
		}
		add(buttonsView);
		buttonsView.setVisible(true);
		
		
		OceanData oceanData = new OceanData(ocean);
		oceanData.setVisible(true);
		if (width < 800) {
			oceanData.setBounds(0, depth + 80, widthSafe, 20);
		}
		else {
			oceanData.setBounds(0, depth + 80, width, 20);
		}
		add(oceanData);
		
		setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);



		

		

		


		


	}