public MsgPanel() {
		setLayout(null);
		cardP.setBounds(151, 1, 548, 423);
		cardP.setLayout(cardL);
		functionPanel.setBounds(0, 1, 150, 423);
		functionPanel.setBackground(Color.getHSBColor(0, 0, (float) 0.68));
		FlowLayout fl = (FlowLayout) functionPanel.getLayout();
		fl.setVgap(0);

		switchPane[0] = new MsgInPanel();
		switchPane[1] = new MsgOutPanel();
		switchPane[2] = new MsgDraftPanel();
		switchPane[3] = new MsgTrashPanel();

		createBtn.setPreferredSize(new Dimension(150, 35));
		functionPanel.add(createBtn);
		for (int i = 0; i < FUNC_NUM; i++) {
			msgBtn[i] = new MsgMenuBtn(funcName[i]);
			btnG.add(msgBtn[i]);
			msgBtn[i].addActionListener(new ActionListener() {
				@Override
				public void actionPerformed(ActionEvent e) {
					cardL.show(cardP,
							((MsgMenuBtn) e.getSource()).getFuncName());
					switch (((MsgMenuBtn) e.getSource()).getFuncName()) {
					case "收件箱":
						((MsgInPanel)switchPane[0]).showTable();
						break;
					case "发件箱":
						((MsgOutPanel)switchPane[1]).showTable();
						break;
					case "草稿箱":
						((MsgDraftPanel)switchPane[2]).showTable();
						break;
					case "回收站":
						((MsgTrashPanel)switchPane[3]).showTable();
						break;
					}
				}
			});
			functionPanel.add(msgBtn[i]);
			cardP.add(switchPane[i], funcName[i]);
		}

		msgBtn[0].setSelected(true);
		add(functionPanel);
		add(cardP);
		setListener();
	}