public static void createDialogBackPanel(JDialog dialog, Component parent) {
		DialogBackPanel newContentPane = new DialogBackPanel(dialog);
		dialog.setContentPane(newContentPane);
		dialog.setSize(parent.getSize());
		dialog.setLocation(parent.getLocationOnScreen());
	}