This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to use a JProgress Bar  RSS feed

 
Adam Dear
Greenhorn
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 ]
 
Ilja Preuss
author
Sheriff
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!