if (transitionDuration == -1) {  initTransitionDuration(); } if (transitionDuration == 0) { repaint(); } else { transparency = 0f; repaint(); }
repaint();
	public void pictureReady() {		if (transitionDuration == -1) {			// initialize transition duration now that we have a Graphics context			initTransitionDuration();		}		if (transitionDuration == 0) {			repaint();		} else {			transparency = 0f;			repaint();		}	}