@Override
			public void windowClosing(WindowEvent frame) {
				// TODO Auto-generated method stub
				frame.getWindow().setVisible(false);	//Ϊ
				((Frame)frame.getComponent()).dispose();//ͷԴ
				System.exit(0);							//˳
			}