public View() {
		
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
		int screenWidth = (int) dim.getWidth() / 2;
		int screenHeight = (int) dim.getHeight() / 2;

		setLocation(screenWidth/2, screenHeight/2);

		container = this.getContentPane();
		setSize(screenWidth, screenHeight);
		
		autorize=new JButton("Autorize");
		send=new JButton("Send");
		
		port=new JLabel("Port");
		adress=new JLabel("Host");
		name=new JLabel("Name");
		
		port1=new JTextField(10);
		adress1=new JTextField(10);
		name1=new JTextField(10);
		message=new JTextField(10);
		
		JTextArea memo=new JTextArea(20,10);
		
		cardPane=new JPanel();
		chatPane=new JPanel();
		gamePane=new JPanel();
		autorizePane =new JPanel();
		
		
		//autorize Panel
		autorizePane.add(port);
		autorizePane.add(port1);
		autorizePane.add(adress);
		autorizePane.add(adress1);
		autorizePane.add(name);
		autorizePane.add(name1);
		autorizePane.add(autorize);
		
		//chat Panel
		chatPane.add(memo);
		chatPane.add(message);
		chatPane.add(send);
		
		//grouping
		group=new JPanel();
		group.add(cardPane);
		group.add(chatPane);
				
		//container
		container.add(gamePane);
		container.add(group);
		container.add(autorizePane);
		
		//Layouts
		group.setLayout(new GridLayout(1,2));
		
		//colors
		cardPane.setBackground(Color.LIGHT_GRAY);
		gamePane.setBackground(Color.ORANGE);
		
		
		
		
	}