errorDialog.setSize(750, 520); errorDialog.setLocationRelativeTo(null); errorDialog.show();
	public void endReport() {            errorDialog.finish();            errorDialog.setSize(750, 520);            errorDialog.setLocationRelativeTo(null); // center the dialog            errorDialog.show();        }