private void closeWindow(final JWindow window) {
		fWindowClosed = true;
		if(fFadeOut && sWindowApi.isTranslucencySupported(Translucency.TRANSLUCENT, sMainScreen)) {
			final AnimationTimer animationTimer = new AnimationTimer(FrameRate.FPS_25);
			animationTimer.setDuration(ANIMATION_FADE_OUT_DURATION);
			animationTimer.setAnimationTarget(new AnimationTarget() {
				
				public void event(AnimationTimer timer, float fraction) {
					sWindowApi.setWindowOpacity(window, 1f - fraction);
				}
				
				public void end(AnimationTimer timer) {
					window.dispose();
				}
				
				public void begin(AnimationTimer timer) {
					
				}
			});
			animationTimer.start();
		} else {
			window.dispose();
		}
	}