public void refreshList()
	{
		this.dialogList = new Vector<ClientDialog>(this.client.getDialogs());
		this.simpleDialogtList = new Vector<JListData>();
		JListData sauvDialog = this.jDialogList.getSelectedValue();
		int indiceClient = -1;
		int cpt = 0;
		for (ClientDialog dialog : this.dialogList)
		{
			if (dialog.isInUse())
			{
				String idDialog = dialog.getIdDialog();
				ArrayList<ClientServerData> clients = dialog.getClients();
				String clientstring = "";
				for (int i = 0; i < clients.size(); i++)
				{
					clientstring += ((i == 0) ? "" : ", ") + clients.get(i).getName();
				}
				JListData clientListData = new JListData(idDialog, clientstring);
				this.simpleDialogtList.add(clientListData);
				if (sauvDialog != null && sauvDialog.equals(clientListData))
				{
					indiceClient = cpt;
				}
				cpt++;
			}
		}
		System.out.println("nouvelle list" + this.simpleDialogtList);
		this.jDialogList.setListData(this.simpleDialogtList);
		if (this.textAreaSaisie.getText().trim().equals(""))
		{
			this.jDialogList.setSelectedIndices(new int[] { this.jDialogList.getModel().getSize() - 1 });
		} else if (sauvDialog != null)
		{
			this.jDialogList.setSelectedIndices(new int[] { indiceClient });
		}
		if (this.jDialogList.getSelectedValue() != null)
		{
			this.setTitle("Dialog-" + this.client.getName() + ":" + this.jDialogList.getSelectedValue());
		} else
		{
			this.setTitle("Dialog-" + this.client.getName());
		}
	}