return new P1<Component>() {public void e(Component glassPane) {
			if (window instanceof JDialog) {
				((JDialog)window).setGlassPane(glassPane);
			} else if (window instanceof JFrame) {
				((JFrame)window).setGlassPane(glassPane);
			} else {
				throw new RuntimeException("Unsupported");
			}
		}}