public GUIMain(String userName, ArrayList<ClientContact> clientContact, DataOutputStream out) {
		clientContactCurrent = clientContact;
		myUserName = userName;
		setTitle(userName);
		writer = out;
		
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		addWindowListener(new WindowListener() {
			
			@Override
			public void windowOpened(WindowEvent arg0) {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void windowIconified(WindowEvent arg0) {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void windowDeiconified(WindowEvent arg0) {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void windowDeactivated(WindowEvent arg0) {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void windowClosing(WindowEvent arg0) {
				// TODO Auto-generated method stub
				String status = Tags.WILL_BE_KILL.replace("<", "&lt;");
				status = status.replace(">", "&gt;");
				String send = Tags.SESSION_STT_S + Tags.PEER_NAME_S + myUserName + Tags.PEER_NAME_E + Tags.STATUS_S + status + Tags.STATUS_E + Tags.SESSION_STT_E;
				try {
					writer.writeUTF(send);
					writer.flush();
				} catch (IOException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
				
			}
			
			@Override
			public void windowClosed(WindowEvent arg0) {

				
			}
			
			@Override
			public void windowActivated(WindowEvent arg0) {
				// TODO Auto-generated method stub
				
			}
		});
		setBounds(100, 100, 265, 611);
		
		JMenuBar menuBar = new JMenuBar();
		setJMenuBar(menuBar);
		
		JMenu mnNewMenu = new JMenu("Setting");
		menuBar.add(mnNewMenu);
		
		JMenu mnNewMenu_1 = new JMenu("Edit");
		menuBar.add(mnNewMenu_1);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(10, 11, 223, 458);
		contentPane.add(scrollPane);
		
		list = new JList();
		list.addMouseListener(this);
		scrollPane.setViewportView(list);
		
		JButton btnNewButton = new JButton("Chat With Me");
		btnNewButton.addActionListener(this);
		
		btnNewButton.setBounds(104, 500, 128, 37);
		contentPane.add(btnNewButton);
		updateList(clientContactCurrent);
	}