public void setWindowOpaque(Window window, boolean isOpaque) {
		try {
			// prevent setting if not supported
			if(!isTranslucencyCapable(window.getGraphicsConfiguration()) ||
					!isTranslucencySupported(Translucency.PERPIXEL_TRANSLUCENT, window.getGraphicsConfiguration().getDevice())) {
				return;
			}
			setWindowOpaque.invoke(null, window, isOpaque);
		} catch(Exception e) {
			e.printStackTrace();
		}
	}