mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-27 16:57:49 +08:00
2.0 KiB
2.0 KiB
Loader
UI guidelines on using loaders.
Implementation: AnimatedIcon.Default
A loader informs users about performing a lengthy operation.
When to use
Follow the rules for progress indicators.
How to use
The loader form and sizes are the same in all themes. Use the default 16×16 loader in all cases.
JLabel(
"Loading...",
AnimatedIcon.Default(),
SwingConstants.LEFT
)
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 as the label:
Remove the loader as soon as the process completes.