@Override
		public void actionPerformed(ActionEvent arg0) {
			// 当按键被点击，关闭当前标签页
			int i = pane.indexOfTabComponent(ButtonTab.this);
			if (i != -1) {
				if (frame.getChanged()) {
					int request = JOptionPane.showConfirmDialog(null,
							"文件已修改是否先保存");
					if (request == JOptionPane.YES_OPTION) {
						new FileOperator(frame).saveFile();
					}
					if (request == JOptionPane.NO_OPTION) {
							frame.getDocList().remove(i);
							frame.getChangedList().remove(i);
							frame.getTextList().remove(i);
							pane.remove(i);
						}

					
				}else{
					frame.getDocList().remove(i);
					frame.getChangedList().remove(i);
					frame.getTextList().remove(i);
					pane.remove(i);
				}
			}
	}