private void setListener() {
		cfBtn.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				LookAndFeel look = UIManager.getLookAndFeel();
				try {
					UIManager.setLookAndFeel(UIManager
							.getSystemLookAndFeelClassName());
				} catch (ClassNotFoundException | InstantiationException
						| IllegalAccessException
						| UnsupportedLookAndFeelException e1) {
					e1.printStackTrace();
				}
				JFileChooser jfc = new JFileChooser();
				jfc.setFileSelectionMode(JFileChooser.FILES_ONLY);
				jfc.setFileFilter(new FileFilter() {
					public String getDescription() {
						return "xls文件";
					}

					public boolean accept(File f) {
						if (f.getName().endsWith(".xls") || f.isDirectory()) {
							return true;
						}
						return false;
					}
				});
				int result = jfc.showSaveDialog(panel);
				if (result == JFileChooser.APPROVE_OPTION) {
					File file = jfc.getSelectedFile();
					String path = file.getAbsolutePath();
					if (!path.endsWith(".xls")) {
						path += ".xls";
					}
					pathField.setText(path);
				}
				try {
					UIManager.setLookAndFeel(look);
				} catch (UnsupportedLookAndFeelException e1) {
					e1.printStackTrace();
				}
			}
		});

		finishBtn.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				finishBtn.setEnabled(false);
				waitlb2.setVisible(true);
				new Thread(new Runnable() {
					public void run() {
						try {
							File f = logic.buildXls(head, content,
									pathField.getText());
							Desktop desktop = Desktop.getDesktop();
							desktop.open(f);
						} catch (IOException e) {
							e.printStackTrace();
							JOptionPane.showMessageDialog(null, "导出失败");
						}
						finishBtn.setEnabled(true);
						waitlb2.setVisible(false);
					}
				}).start();
			}
		});
	}