protected void createContents() {
		shlCradsAginstHumanity = new Shell();

		display = Display.getDefault();//.asyncExec(runnable);

		NewGame_D= new newgame_Dialog(shlCradsAginstHumanity);
		//createContents();

		NewGame_D.open();//check the placement
		shlCradsAginstHumanity.setSize(1272, 597);
		shlCradsAginstHumanity.setText("Crads Aginst Humanity");

		Menu menu = new Menu(shlCradsAginstHumanity, SWT.BAR);
		shlCradsAginstHumanity.setMenuBar(menu);


		MenuItem mntmFile = new MenuItem(menu, SWT.CASCADE);
		mntmFile.setText("File");

		Menu menu_1 = new Menu(mntmFile);
		mntmFile.setMenu(menu_1);

		MenuItem mntmConnect = new MenuItem(menu_1, SWT.NONE);
		mntmConnect.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
				NewGame_D.open();
			}
		});
		mntmConnect.setText("Connect");

		MenuItem mntmExit = new MenuItem(menu, SWT.NONE);
		mntmExit.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
				initilaize.Exit();
				shlCradsAginstHumanity.dispose();
			}
		});
		mntmExit.setText("Exit");

		Composite composite_6 = new Composite(shlCradsAginstHumanity, SWT.NONE);
		composite_6.setBounds(795, 220, 151, 172);

		Composite composite_7 = new Composite(shlCradsAginstHumanity, SWT.NONE);
		composite_7.setBounds(954, 220, 151, 172);

		Composite composite_8 = new Composite(shlCradsAginstHumanity, SWT.NONE);
		composite_8.setBounds(1111, 220, 151, 172);

		Composite composite_9 = new Composite(shlCradsAginstHumanity, SWT.NONE);
		composite_9.setBounds(211, 10, 151, 172);
		
		btnNewButton = new Button(composite_9, SWT.WRAP);
		btnNewButton.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
			}
		});
		btnNewButton.setBounds(0, 0, 151, 172);

		Composite composite_10 = new Composite(shlCradsAginstHumanity, SWT.NONE);
		composite_10.setBounds(368, 10, 151, 172);

		Composite composite_11 = new Composite(shlCradsAginstHumanity, SWT.NONE);
		composite_11.setBounds(528, 10, 151, 172);

		Composite composite_12 = new Composite(shlCradsAginstHumanity, SWT.NONE);
		composite_12.setBounds(685, 10, 151, 172);

		Label label = new Label(shlCradsAginstHumanity, SWT.SEPARATOR | SWT.HORIZONTAL);
		label.setBounds(10, 198, 1236, 2);

		Label label_1 = new Label(shlCradsAginstHumanity, SWT.SEPARATOR | SWT.VERTICAL);
		label_1.setBounds(183, 0, 2, 199);

		Button btnConfiremCard = new Button(shlCradsAginstHumanity, SWT.NONE);
		btnConfiremCard.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
				
				btnNewButton.setText(selected_card);
			}
		});
		btnConfiremCard.setBounds(10, 437, 107, 25);
		btnConfiremCard.setText("Confirem Card");

		message_text = new Text(shlCradsAginstHumanity, SWT.BORDER);
		message_text.setBounds(907, 494, 258, 21);

		Button btnSendMessage = new Button(shlCradsAginstHumanity, SWT.NONE);
		btnSendMessage.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
				initilaize.c.sendMsg(message_text.getText());
				message_text.setText("");
				//setChat();
			}
		});
		btnSendMessage.setBounds(1171, 492, 75, 25);
		btnSendMessage.setText("Send");

		styledText = new StyledText(shlCradsAginstHumanity, SWT.BORDER | SWT.READ_ONLY | SWT.WRAP);
		styledText.setText("");
		styledText.setEditable(false);
		styledText.setBounds(907, 406, 339, 82);

		btnHidden = new Button(shlCradsAginstHumanity, SWT.NONE);
		btnHidden.setBounds(10, 490, 75, 25);
		btnHidden.setVisible(false);
		
		btnblack_card = new Button(shlCradsAginstHumanity, SWT.WRAP);
		btnblack_card.setEnabled(false);
		btnblack_card.setBounds(10, 10, 167, 172);
		create_Button(initilaize.getNumber_of_cards_player());
		
		/*btnCard1 = new Button(shlCradsAginstHumanity, SWT.NONE);
		btnCard1.setBounds(10, 220, 151, 172);
		
		btnCard2 = new Button(shlCradsAginstHumanity, SWT.NONE);
		btnCard2.setBounds(167, 220, 151, 172);
		
		btnCard3 = new Button(shlCradsAginstHumanity, SWT.NONE);
		btnCard3.setBounds(324, 220, 151, 172);
		
		btnCard4 = new Button(shlCradsAginstHumanity, SWT.NONE);
		btnCard4.setBounds(480, 220, 151, 172);
		
		btnCard5 = new Button(shlCradsAginstHumanity, SWT.NONE);
		btnCard5.setBounds(637, 220, 151, 172);*/
		
		btnHidden.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
				setChat();
			}	
		});

		btnCard1.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
				
				selected_card=btnCard1.getText();
			}
		});
		btnCard2.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
				selected_card=btnCard2.getText();
			}
		});
		btnCard3.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
				
				selected_card=btnCard3.getText();
			}
		});
		btnCard4.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
				
				selected_card=btnCard4.getText();
			}
		});
		btnCard5.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
				
				selected_card=btnCard5.getText();
			}
		});

	}