private void openChatWindow(String user, int userId, boolean isUserAction) {
		if(Users.getUsersOnline() != null) {
			for(NetworkSharedUser n : Users.getUsersOnline()) {
				if(n.getName().equalsIgnoreCase(user)) {
					if(privateChats.get(userId) == null) {
						ChatWindow newChat = new ChatWindow(userId);
						privateChats.put(userId, newChat);
						openChatsPane.addTab(null, newChat);
						
						int tabIndex = openChatsPane.getTabCount() - 1;
						
						ChatsPaneTab chatTab = new ChatsPaneTab(user, tabIndex);
						chatTab.setMaximumSize(new Dimension(350, 20));
						openChatsPane.setTabComponentAt(tabIndex, chatTab);
						chatTab.setActionListener(this);
						if(isUserAction) {
							openChatsPane.setSelectedIndex(tabIndex);
						}
					} else {
						if(isUserAction) {
							for(int i = 0; i < openChatsPane.getTabCount(); i++) {
								if(openChatsPane.getTitleAt(i).equalsIgnoreCase(user)) {
									openChatsPane.setSelectedIndex(i);
								}
							}
						}
					}
					break;
				}
			}
		}
	}