@Override
		public int getAnimationDuration() {
			return (Integer) durationField.getValue();
		}
Minimal example for an animated icon.
flatlaf-testing/src/main/java/com/formdev/flatlaf/testing/FlatAnimatedIconTest.java