animateButton.setText(bundle.getString("Animate"));  if (animate) {   animate = false; } else {  displayImage(imageDataArray[imageDataIndex]); }
resetScaleCombos(); resetScrollBars();
			public void run() {				// Enable anything we disabled before the animation.				previousButton.setEnabled(true);				nextButton.setEnabled(true);				backgroundCombo.setEnabled(true);				scaleXCombo.setEnabled(true);				scaleYCombo.setEnabled(true);				alphaCombo.setEnabled(true);				incrementalCheck.setEnabled(true);				transparentCheck.setEnabled(true);				maskCheck.setEnabled(true);							// Reset the label of the Animate button.				animateButton.setText(bundle.getString("Animate"));							if (animate) {					// If animate is still true, we finished the					// full number of repeats. Leave the image as-is.					animate = false;				} else {					// Redisplay the current image and its palette.					displayImage(imageDataArray[imageDataIndex]);				}			}