private void initComponents() {

		menuBar1 = new java.awt.MenuBar();
		menu1 = new java.awt.Menu();
		menuBar2 = new java.awt.MenuBar();
		menu2 = new java.awt.Menu();
		treePopupMenu = new javax.swing.JPopupMenu();
		jMenuItem3 = new javax.swing.JMenuItem();
		jPanel1 = new javax.swing.JPanel();
		jToolBar1 = new javax.swing.JToolBar();
		newMailButton = new javax.swing.JButton();
		rcvMailButton = new javax.swing.JButton();
		jButton1 = new javax.swing.JButton();
		jButton3 = new javax.swing.JButton();
		jButton2 = new javax.swing.JButton();
		jScrollPane4 = new javax.swing.JScrollPane();
		jTable1 = new javax.swing.JTable(){
			public boolean isCellEditable(int rowIndex, int columnIndex) {
				return false;
			}
		};
		jScrollPane3 = new javax.swing.JScrollPane();
		mailTextArea = new javax.swing.JTextArea();
		jPanel2 = new javax.swing.JPanel();
		jScrollPane1 = new javax.swing.JScrollPane();
		tree = new javax.swing.JTree(root);
		jScrollPane2 = new javax.swing.JScrollPane();
		stateTextArea = new javax.swing.JTextArea();
		jMenuBar1 = new javax.swing.JMenuBar();
		jMenu1 = new javax.swing.JMenu();
		jMenuItem1 = new javax.swing.JMenuItem();
		jSeparator1 = new javax.swing.JSeparator();
		jMenuItem2 = new javax.swing.JMenuItem();
		jMenu2 = new javax.swing.JMenu();
		jMenuItem4 = new javax.swing.JMenuItem();

		menu1.setLabel("Menu");
		menuBar1.add(menu1);

		menu2.setLabel("Menu");
		menuBar2.add(menu2);

		jMenuItem3.setText("\u6e05\u7a7a");
		jMenuItem3.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jMenuItem3ActionPerformed(evt);
			}
		});
		treePopupMenu.add(jMenuItem3);

		setTitle("MailClient");
		setDefaultCloseOperation(3);

		jToolBar1.setRollover(true);

		newMailButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/icons/WriteNew.png"))); // NOI18N
		newMailButton.setFocusable(false);
		newMailButton.setHorizontalTextPosition(0);
		newMailButton.setText("\u65b0\u90ae\u4ef6");
		newMailButton.setVerticalTextPosition(3);
		newMailButton.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				newMailButtonActionPerformed(evt);
			}
		});
		jToolBar1.add(newMailButton);

		rcvMailButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/icons/download.png"))); // NOI18N
		rcvMailButton.setFocusable(false);
		rcvMailButton.setHorizontalTextPosition(0);
		rcvMailButton.setText("\u6536\u90ae\u4ef6");
		rcvMailButton.setVerticalTextPosition(3);
		rcvMailButton.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				rcvMailButtonActionPerformed(evt);
			}
		});
		jToolBar1.add(rcvMailButton);

		jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/icons/icon_host.gif"))); // NOI18N
		jButton1.setFocusable(false);
		jButton1.setHorizontalTextPosition(0);
		jButton1.setMaximumSize(new java.awt.Dimension(65, 59));
		jButton1.setMinimumSize(new java.awt.Dimension(65, 59));
		jButton1.setPreferredSize(new java.awt.Dimension(55, 49));
		jButton1.setText("\u7528\u6237\u8bbe\u7f6e");
		jButton1.setVerticalTextPosition(3);
		jButton1.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton1ActionPerformed(evt);
			}
		});
		jToolBar1.add(jButton1);

		jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/icons/transmit.gif"))); // NOI18N
		jButton3.setFocusable(false);
		jButton3.setHorizontalTextPosition(0);
		jButton3.setMaximumSize(new java.awt.Dimension(50, 59));
		jButton3.setMinimumSize(new java.awt.Dimension(50, 59));
		jButton3.setPreferredSize(new java.awt.Dimension(50, 49));
		jButton3.setText("\u8f6c\u53d1");
		jButton3.setVerticalTextPosition(3);
		jButton3.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton3ActionPerformed(evt);
			}
		});
		jToolBar1.add(jButton3);

		jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/icons/junkmail.gif"))); // NOI18N
		jButton2.setFocusable(false);
		jButton2.setHorizontalTextPosition(0);
		jButton2.setMaximumSize(new java.awt.Dimension(45, 59));
		jButton2.setMinimumSize(new java.awt.Dimension(45, 59));
		jButton2.setText("\u5220\u9664");
		jButton2.setVerticalTextPosition(3);
		jButton2.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton2ActionPerformed(evt);
			}
		});
		jToolBar1.add(jButton2);

		jTable1.setEditingColumn(0);
		jTable1.setEditingRow(0);
		jTable1.setFocusable(false);
		jTable1.setShowGrid(false);
		jTable1.setShowHorizontalLines(true);
		jTable1.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jTable1MouseClicked(evt);
			}
		});
		jScrollPane4.setViewportView(jTable1);

		mailTextArea.setColumns(20);
		mailTextArea.setRows(5);
		jScrollPane3.setViewportView(mailTextArea);

		org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(
				jPanel1);
		jPanel1.setLayout(jPanel1Layout);
		jPanel1Layout.setHorizontalGroup(jPanel1Layout.createParallelGroup(
				org.jdesktop.layout.GroupLayout.LEADING).add(
				org.jdesktop.layout.GroupLayout.TRAILING, jToolBar1,
				org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 764,
				Short.MAX_VALUE).add(jScrollPane3,
				org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 764,
				Short.MAX_VALUE).add(jScrollPane4,
				org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 764,
				Short.MAX_VALUE));
		jPanel1Layout
				.setVerticalGroup(jPanel1Layout
						.createParallelGroup(
								org.jdesktop.layout.GroupLayout.LEADING)
						.add(
								jPanel1Layout
										.createSequentialGroup()
										.add(
												jToolBar1,
												org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
												59,
												org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
										.addPreferredGap(
												org.jdesktop.layout.LayoutStyle.RELATED)
										.add(
												jScrollPane4,
												org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
												296, Short.MAX_VALUE)
										.addPreferredGap(
												org.jdesktop.layout.LayoutStyle.RELATED)
										.add(
												jScrollPane3,
												org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
												199,
												org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)));

		tree.setFocusable(false);
		tree.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				treeMouseClicked(evt);
			}
		});
		jScrollPane1.setViewportView(tree);

		stateTextArea.setColumns(15);
		stateTextArea.setEditable(false);
		stateTextArea.setRows(5);
		stateTextArea.setName("stateTextArea");
		jScrollPane2.setViewportView(stateTextArea);
		stateTextArea.getAccessibleContext().setAccessibleName("stateTextArea");

		org.jdesktop.layout.GroupLayout jPanel2Layout = new org.jdesktop.layout.GroupLayout(
				jPanel2);
		jPanel2.setLayout(jPanel2Layout);
		jPanel2Layout.setHorizontalGroup(jPanel2Layout.createParallelGroup(
				org.jdesktop.layout.GroupLayout.LEADING).add(jScrollPane2,
				org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 175,
				Short.MAX_VALUE).add(jScrollPane1,
				org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 175,
				Short.MAX_VALUE));
		jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(
				org.jdesktop.layout.GroupLayout.LEADING).add(
				jPanel2Layout.createSequentialGroup().add(jScrollPane2,
						org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 217,
						org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
						.addPreferredGap(
								org.jdesktop.layout.LayoutStyle.RELATED).add(
								jScrollPane1,
								org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
								343, Short.MAX_VALUE)));

		jMenu1.setText("\u9009\u9879");

		jMenuItem1.setText("\u7528\u6237\u8bbe\u7f6e");
		jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jMenuItem1ActionPerformed(evt);
			}
		});
		jMenu1.add(jMenuItem1);
		jMenu1.add(jSeparator1);

		jMenuItem2.setText("\u9000\u51fa");
		jMenuItem2.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jMenuItem2ActionPerformed(evt);
			}
		});
		jMenu1.add(jMenuItem2);

		jMenuBar1.add(jMenu1);

		jMenu2.setText("\u5e2e\u52a9");

		jMenuItem4.setText("\u5e2e\u52a9");
		jMenuItem4.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jMenuItem4ActionPerformed(evt);
			}
		});
		jMenu2.add(jMenuItem4);

		jMenuBar1.add(jMenu2);

		setJMenuBar(jMenuBar1);

		org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(
				getContentPane());
		getContentPane().setLayout(layout);
		layout.setHorizontalGroup(layout.createParallelGroup(
				org.jdesktop.layout.GroupLayout.LEADING).add(
				layout.createSequentialGroup().add(jPanel2,
						org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
						org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
						org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
						.addPreferredGap(
								org.jdesktop.layout.LayoutStyle.RELATED).add(
								jPanel1,
								org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
								org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
								Short.MAX_VALUE)));
		layout.setVerticalGroup(layout.createParallelGroup(
				org.jdesktop.layout.GroupLayout.LEADING).add(jPanel2,
				org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
				org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
				.add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel1,
						org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
						org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
						Short.MAX_VALUE));

		pack();
	}// </editor-fold>