This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
That's what the javax.swing.JProgressBar class does.
Seema Sharma
Ranch Hand

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

Regards,
Seema
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
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
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
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.
 
Have you checked out Aspose?
 
subject: Progress bar within dialog box
 
It's not a secret anymore!