private void jTable1MouseClicked(java.awt.event.MouseEvent evt) {

		int index = jTable1.getSelectedRow();
		mail = mailList.get(jTable1.getSelectedRow());
		if (evt.getClickCount() == 1) {

			mailTextArea.setText(mail.getContent());

		} else if (evt.getClickCount() == 2) {
			if (tree.getLastSelectedPathComponent().equals(recvBox))
				new ReadMail(user, mailList, index);
			else {
				mail = mailList.get(index);
				
				new WriteNewMail(user, mail);
			}
		}
		if ("".equals(mail.getExtraFilename()))
			mail.setStatus("+");
		else
			mail.setStatus("+ &");

		if (tree.getLastSelectedPathComponent().equals(recvBox)) {
			table.removeRow(index);
			table.insertRow(index, new String[] { mail.getStatus(),
					mail.getSubject(), mail.getTo(), mail.getTime() });
		}
	}