Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

How to use a JProgress Bar  RSS feed

Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am currently working on a small gui program for school. The assignment is to read in approximately 1000 items from 10 different files, create an instance of my name object, store all items in an array, and the sort the array. This is not part of the assignment, so I'm not asking you to do my work for me, but I would like to use a JProgress Bar to show the status of the startup process. All of the steps listed above happen before the gui is loaded.

I have read "How to Use a Progress Bar" on the java site, but it really doesn't help me. Could someone please help me to figure out how to use the progress bar. I would like to have a bar track the progress of reading all of the info from the files, and then start the progress bar over to track the progress of the sort. Here is the code where I read in the files and sort the array:

[ April 21, 2005: Message edited by: Adam Dear ]
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Swing forum...

It would also help if you'd use code tags.
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!