Results 1 to 4 of 4
Thread: Progress Bar using Awt help
- 03-28-2012, 04:18 AM #1
Member
- Join Date
- Mar 2012
- Posts
- 3
- Rep Power
- 0
Progress Bar using Awt help
Hi
I want to show the progress Bar when the process is running.if the process is done i will display result page.in the below code i used 1000 ms intervel..the progress will show till 1000 ms only..But i want to show the progress bar till the proces is running...
find the below sample code
pb = new JProgressBar(0, 20);
pb.setValue(0);
pb.setStringPainted(true);
cPane.add(pb);
//Create a timer.
timer = new Timer(interval, new ActionListener() {
public void actionPerformed(ActionEvent evt) {
if (i == 20){
Toolkit.getDefaultToolkit().beep();
timer.stop();
jbnRun.setEnabled(true);
pb.setValue(0);
}
i = i + 1;
pb.setValue(i);
}
});
=============================================
-
Re: Progress Bar using Awt help
I'm sorry, what exactly is your question/problem? I'm not really sure as yet.
- 03-28-2012, 07:01 AM #3
Re: Progress Bar using Awt help
ynglsuresh, it looks like you didn't bother to read my response on your earlier thread, so I won't bother repeating the advice here.
I also won't bother to even attempt to discover what kind of help you're looking for this time.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 03-28-2012, 07:33 AM #4
Member
- Join Date
- Mar 2012
- Posts
- 3
- Rep Power
- 0
Re: Progress Bar using Awt help
Actual flow : i have a window which take the url and it will process the data and stores the data in to the DB.while processing am showing the progressbar in to that window ..the progress bar will show 1000 ms only(example code has written above thread).and the problem is some time process is taking more than 1000 ms .that time progress bar is completed and background still process is going on..
Expected flow : i want to show the progress bar till process ends.
hope it will understand :-) please help me on this guys
Similar Threads
-
Connecting progress bar/ progress monitor to a task
By Ami in forum AWT / SwingReplies: 0Last Post: 03-01-2012, 12:21 PM -
Progress bar
By Milanek in forum New To JavaReplies: 0Last Post: 10-11-2011, 04:41 PM -
problem on progress bar
By ravidasineni in forum AWT / SwingReplies: 2Last Post: 12-27-2009, 02:23 AM -
How to use Progress bar
By LankanSniper in forum AWT / SwingReplies: 3Last Post: 03-25-2009, 10:44 AM -
Console Progress Bar
By new_2_java in forum New To JavaReplies: 1Last Post: 02-16-2008, 02:18 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks