private void treeMouseClicked(java.awt.event.MouseEvent evt) {
		treePopupMenu.setVisible(false);
		if (evt.getClickCount() >= 1 && evt.getButton() == 1) {
			if (!"".equals(lastSelectedBox)) {
				try {
					MailAction.save(mailList, "user/" + user.getUsername()
							+ "/" + lastSelectedBox);
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
			mailList.clear();
			table = new DefaultTableModel();
			jTable1.setModel(table);
			if (tree.getLastSelectedPathComponent().equals(recvBox)) {
				//˫ռĶ
				table.addColumn("״̬");
				table.addColumn("");
				table.addColumn("");
				table.addColumn("ʱ");

				jTable1.getColumnModel().getColumn(0).setPreferredWidth(5);
				jTable1.getColumnModel().getColumn(1).setPreferredWidth(250);
				jTable1.getColumnModel().getColumn(2).setPreferredWidth(130);
				jTable1.getColumnModel().getColumn(3).setPreferredWidth(100);

				try {

					MailAction.regain(mailList, "user/" + user.getUsername()
							+ "/recvBox.dat");
					Mail aMail;
					Iterator<Mail> it = mailList.iterator();
					while (it.hasNext()) {
						aMail = it.next();
						table.addRow(new Object[] { aMail.getStatus(),
								aMail.getSubject(), aMail.getFrom(),
								aMail.getTime() });
					}
				} catch (IOException e) {
					System.out.println("޼¼");
					e.printStackTrace();
				}
				lastSelectedBox = "recvBox.dat";
			} else if (tree.getLastSelectedPathComponent().equals(postBox)) {
				//˫Ķ
				table.addColumn("");
				table.addColumn("ռ");
				table.addColumn("ʱ");

				jTable1.getColumnModel().getColumn(0).setPreferredWidth(200);
				jTable1.getColumnModel().getColumn(1).setPreferredWidth(100);
				jTable1.getColumnModel().getColumn(2).setPreferredWidth(100);

				try {
					MailAction.regain(mailList, "user/" + user.getUsername()
							+ "/postBox.dat");
					Mail aMail;
					Iterator<Mail> it = mailList.iterator();
					while (it.hasNext()) {
						aMail = it.next();
						table.addRow(new String[] { aMail.getSubject(),
								aMail.getTo(), aMail.getTime() });
					}
				} catch (IOException e) {
					System.out.println("޼¼");
					e.printStackTrace();
				}
				lastSelectedBox = "postBox.dat";
			} else if (tree.getLastSelectedPathComponent().equals(draftBox)) {
				//˫ݸĶ
				table.addColumn("");
				table.addColumn("ռ");
				table.addColumn("ʱ");

				jTable1.getColumnModel().getColumn(0).setPreferredWidth(200);
				jTable1.getColumnModel().getColumn(1).setPreferredWidth(100);
				jTable1.getColumnModel().getColumn(2).setPreferredWidth(100);

				try {
					MailAction.regain(mailList, "user/" + user.getUsername()
							+ "/draftBox.dat");
					Mail aMail;
					Iterator<Mail> it = mailList.iterator();
					while (it.hasNext()) {
						aMail = it.next();
						table.addRow(new String[] { aMail.getSubject(),
								aMail.getTo(), aMail.getTime() });
					}
				} catch (IOException e) {
					System.out.println("޼¼");
					e.printStackTrace();
				}
				lastSelectedBox = "draftBox.dat";
			}

		} else if (evt.getButton() == 3) {//ҼӦ
			treePopupMenu.setLocation(
					evt.getX() + tree.getLocationOnScreen().x, evt.getY()
							+ tree.getLocationOnScreen().y);
			treePopupMenu.setVisible(true);
		}
	}