@Override
	public void actionPerformed(ActionEvent e) {
		// TODO Auto-generated method stub
		switch (e.getActionCommand()) {
		case "确定":
			if(policyB){
				if(start){
					new Login().setTitle("小白楊日記本");;
					this.dispose();
				}else{
				new Register().setTitle("小白杨日记本");
				this.dispose();
				}
			}else{
				JOptionPane.showMessageDialog(this, "请先勾选同意协议");
			}
			break;
		case "取消":
			System.exit(0);
			break;
		default:
			break;
		}
	}