File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Progress bar within dialog box Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Progress bar within dialog box" Watch "Progress bar within dialog box" New topic
Author

Progress bar within dialog box

Seema Sharma
Ranch Hand

Joined: May 24, 2007
Posts: 78
Hi,
Please let me know how to place progress bar within a dialog box using java swings. Thanks in advance.

Regards,
Seema
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
That's what the javax.swing.JProgressBar class does.


Ping & DNS - updated with new look and Ping home screen widget
Seema Sharma
Ranch Hand

Joined: May 24, 2007
Posts: 78
So can i use progress monitor for this?

Regards,
Seema
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
What do you mean by "progress monitor"? A progress bar is implemented by JProgressBar.
Seema Sharma
Ranch Hand

Joined: May 24, 2007
Posts: 78
Swing provides three classes to help you use progress bars:
1.JProgressBar
2.ProgressMonitor
3.ProgressMonitorInputStream

As mentioned in: http://java.sun.com/docs/books/tutorial/uiswing/components/progress.html

Let me know.

Regards,
Seema
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
It looks as if ProgressMonitor creates its own dialog (if necessary). So if you already have a dialog, that's probably not what you want. In that case, use JProgressBar.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Progress bar within dialog box
 
Similar Threads
Progress Bar
JProgressBar
progress bar in swing
ProgressDialog.show dosent show ProgressBar Immediately
Saving a JDialog using ImageIO giving many problems