Tag: Java

Infinite progress bars in swing

Following are some infinite progress bars built in java swing 2d using JPanel's paintComponent(Graphics g) method. Windows XP I have seen this kind of loading icon while setting up windows XP, you might have also seen it: So how one can simulate same in swing? Here is the answer: Circular infinite progress bar For this you … Continue reading Infinite progress bars in swing

Drawing Android icon in swing

Hi, I tried to make android robot in java swing. I found 2 ways of doing this: Get android robot image, and show it as background in panel. Draw whole robot shape in java 2d graphics. Here I will demonstrate the second way. The final output will be like this: There are mainly five shapes … Continue reading Drawing Android icon in swing