wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Progress Monitor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Progress Monitor" Watch "Progress Monitor" New topic

Progress Monitor

Barclay Berger

Joined: Jun 07, 2006
Posts: 6
I'm new to java and not real sure on how to hook up a progress monitor to an event. I'm trying to update the progress monitor as the a function runs but all I get is a blank progress monitor and never updates. I don't quite understand actionlistners etc.. so I'm sure that is what I'm missing but here is what I'm trying to do.

public void jButton1_actionPerformed(ActionEvent e) {

private void runupdate() {
ProgressMonitor prog = new ProgressMonitor(SwingLabel.this,
"Uploading Images, Please Wait...",
"", 0, 100);
prog.setNote("Uploading Images, Please Wait");
prog.setNote("Uploading Image 1");
Joe Ess

Joined: Oct 29, 2001
Posts: 8843

Have a look at this entry in our FAQ: JProgressBar Doesnt Update

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
I agree. Here's the link: http://aspose.com/file-tools
subject: Progress Monitor
Similar Threads
Java swing background execution
Change size of progress monitor
Problem with ProgressMonitor
Timers/Progress problem
How to Resize ProgressMonitor? How to display the message/note in two lines in progress monitor?