Well, as regards a simple progress step that does not show actual progress (just that the application is doing something), I would recommend a simple animated image (generating it at http://www.ajaxload.info/ ).
If the animated image / gif is not an option:
A simple solution will create multiple images and replace them in a circular way. I used this recently, basically you are making a timer that calls itself:
Timer updateAnim = new Timer() {
@Override
public void run() {
currentImage = (currentImage + 1) % NO_IMAGES;
setVisibilities();
this.schedule(UPDATE_TICK);
}
};
private void setVisibilities() {
img1.setVisible(false);
img2.setVisible(false);
switch (currentImage) {
case 0:
img1.setVisible(true);
break;
case 1:
img2.setVisible(true);
break;
}
}
setVisibilities()just sets the current image to visible and the other to invisible. I experienced this faster than switching the image url (using only one image while invoking img.setURL(String url);).
Now you just call updateAnim.schedule(UPDATE_TICK);and it will start.
, ( ) CSS ( ), , , ( , , ;). CSS.
( ), , . /CSS- .