# Loader UI guidelines on using loaders. **Implementation:** [`AnimatedIcon.Default`](%gh-ic%/platform/ide-core/src/com/intellij/ui/AnimatedIcon.java) **Related:** [](icons.md#animated-icons) A loader informs users about performing a lengthy operation. ![](loader.png){width=330} ## When to use Follow the rules for [progress indicators](progress_indicators.md). ## How to use The loader form and sizes are the same in all themes. Use the default 16×16 loader in all cases. ```kotlin JLabel( "Loading...", AnimatedIcon.Default(), SwingConstants.LEFT ) ``` ```java new JLabel( "Loading...", new AnimatedIcon.Default(), SwingConstants.LEFT ); ``` A loader may have a label if the process is long and the loader is shown in an empty area. In this case, use a [progress text](progress_text.md) as the label: ![](loader_with_progress_text.png){width=597} Remove the loader as soon as the process completes. ## Placement
Inside a field
ExpandableTextField textField = new ExpandableTextField(); textField.addExtension( Extension.create(new AnimatedIcon.Default(), null, null) );
In a corner
Next to an item
Before a progress text