public static AnimatedLabel createClassicSpinningLine ( int speed ) { AnimatedLabel animatedLabel = new AnimatedLabel ( "-" ) ; animatedLabel . addFrame ( "\\" ) ; animatedLabel . addFrame ( "|" ) ; animatedLabel . addFrame ( "/" ) ; animatedLabel . startAnimation ( speed ) ; return animatedLabel ; }
Creates a classic spinning bar which can be used to signal to the user that an operation in is process .