Possible Duplicate:
Pretty alternative to JProgressBar?
I have a process which takes several seconds to load, and I want to create an animation in Java Swing until it finishes loading.
I’d like to avoid using a typical ProgressBar and use a nice modern infinite progress like this one

I’m aware of similar questions but this is strictly Java Swing related.
Is there any library or example for this?
I’d recommend using the glasspane for this type of activity. The steps involved are:
JComponentwithBorderLayout. Add aJLabelto theCENTERwhich includes the animated .gif icon of your choice.paint(Graphics)method to make your GUI appear greyed out (or whited out). To achieve this you need to draw a filled rectangle the size of the component, filling the rectangle with a semi-transparent Color.