i have a desktop GUI in swing , i want to show status of user storage used in the GUI using jProgressBar, Please suggest some attractive way to do.
Asked
Active
Viewed 121 times
-5
-
2I'm not sure what you're asking. – Dave Newton Aug 18 '12 at 12:38
-
The tutorial ***is*** available, and you'd do well to read it. – Hovercraft Full Of Eels Aug 18 '12 at 13:13
1 Answers
3
I suggest you read this tutorial. I think it is the most attractive way to learn how to use JProgressBar.
To elaborate the answer a little:
JProgressBar progress = new JProgressBar(0, totalAvailableStorage);
progress.setValue(occupiedStorage);
Of course, you have to add the progress bar to its container and call progress.setValue() whenever needed.

Dan D.
- 32,246
- 5
- 63
- 79