• Post Reply Bookmark Topic Watch Topic
  • New Topic

Swing Progress Bar  RSS feed

 
Thomas Greene
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a small swing based application.
When the porcessing is happening I want some mesages to be displayed to the user which tells him at what stage the processing is in (sort of progress bar).

Say, there are 100 files to be copied. So, as an when each file is copied a message should be displayed, like

File 1 successful
File 2 successful
File 3 successful
File 4 successful
File 5 successful
File 6 successful
....

So that the user knows some processing is happening in the background (Similar to the mesages which are displayed when Tomcat is installed).

I have written some sample code for that



The problem with this code is that, messages are displayed when all the processing is finished. How can messages be displayed when processing is happening?

Please help
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at our FAQ article: JProgressBarDoesntUpdate
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!