R
Richard
Hi all,
I have a question and I think I have a fundamental mis-understanding
with Swing. If anyone could help or give me any pointers I would
appreciate it.
I have written a search program that looks for particular files and
then displays them in a jtable. Now this search can take up to 30
seconds. To give the user some feedback I wanted to use a jProgressBar.
I am setting setIndeterminate to true so that the blip just goes back
and forth.
I set off the progress bar when the search happen however the progress
bar does nothing. When the search is done then the program starts the
progress bar. It looks like the processes are happening serially. First
search then start of progress bar. However I set the progress bar off
before the search starts. I have tried to start the progress bar off on
another thread, thinking it is a thread issue but this does not work.
How can I get Swing to update the progress bar while the search is
going on? I havent given much info on my program here because it is
quite complicated. If this is a hindrance then any tips would be
appreciated
Thanks in advance
Richard
--
I have a question and I think I have a fundamental mis-understanding
with Swing. If anyone could help or give me any pointers I would
appreciate it.
I have written a search program that looks for particular files and
then displays them in a jtable. Now this search can take up to 30
seconds. To give the user some feedback I wanted to use a jProgressBar.
I am setting setIndeterminate to true so that the blip just goes back
and forth.
I set off the progress bar when the search happen however the progress
bar does nothing. When the search is done then the program starts the
progress bar. It looks like the processes are happening serially. First
search then start of progress bar. However I set the progress bar off
before the search starts. I have tried to start the progress bar off on
another thread, thinking it is a thread issue but this does not work.
How can I get Swing to update the progress bar while the search is
going on? I havent given much info on my program here because it is
quite complicated. If this is a hindrance then any tips would be
appreciated
Thanks in advance
Richard
--