for (int id = 0; id < previousInfoCache.length; id++) { if (previousInfoCache[id] != null) { previousInfoCache[id].flush();
for (int id = 0; id < previousInfoImage.length; id++) { if (previousInfoImage[id] != null) { previousInfoImage[id].flush();
		public void actionPerformed(ActionEvent e) {			long now = System.currentTimeMillis();			if (now - transitionStart > transitionDuration) {				timer.stop();				imageAlpha = 1;				// flush previous, no longer needed				previousImage = null;				for (int id = 0; id < previousInfoCache.length; id++) {					if (previousInfoCache[id] != null) {						previousInfoCache[id].flush();					}					previousInfoCache[id] = null;				}			} else {				imageAlpha = ((float) (now - transitionStart)) / transitionDuration;			}			repaint();		}