This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets 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: 41054
    
  43
That's what the javax.swing.JProgressBar class does.


Ping & DNS - my free Android networking tools app
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: 41054
    
  43
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: 41054
    
  43
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 in swing
Saving a JDialog using ImageIO giving many problems
Progress Bar
JProgressBar
ProgressDialog.show dosent show ProgressBar Immediately