public static JDialog dialog(String title, final Window frame,
			F1<Window, P0> onEsc) {
		final JDialog dialog = dialogRaw(title, frame,ModalityType.APPLICATION_MODAL);
		
		// Setup escape
		final P0 disposeF = onEsc.e(dialog);
		
		onKeyDown_recursive(dialog, "ESCAPE", disposeF);
		return dialog;
	}