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 Problem with ProgressMonitor 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
Reply locked New topic
Author

Problem with ProgressMonitor

Hemanth Kumar Simhadri
Ranch Hand

Joined: Apr 22, 2010
Posts: 32
Can anyone guide me how to increase the size of the ProgressMonitor.

I have the code like this :

public JFrame getMyParentFrame()
{
return new JFrame();
}

ProgressMonitor progressMonitor = new ProgressMonitor(context.getMyParentFrame(),
"PM Search in progress...",
"Calculating file numbers...",
0, 100);

progressMonitor.setMillisToDecideToPopup(0);
progressMonitor.setMillisToPopup(0);
progressMonitor.setProgress(1);


String note = "Searching file " + currentFileNumber +
"/" + totalNumberOfFiles + "... Found " +
searchResults.size() + " records...";

progressMonitor.setNote(note);


In the above code "currentFileNumber " ,"totalNumberOfFiles " and searchResults.size() are some dynamic values.

In my progress monitor window, the note was displayed only till ...Fou as set in the note.

The searchResults.size() + " records..." is not shown in the progress monitor window. but if user enlarges the corners of the window he is able to see the full message.

Is it possible to increase the size? please help
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
also posted here

http://www.coderanch.com/t/457018/GUI/java/Change-size-progress-monitor
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19538
    
  16

UseOneThreadPerQuestion. Since the other thread has more replies I'll close this one.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with ProgressMonitor
 
Similar Threads
How to Resize ProgressMonitor? How to display the message/note in two lines in progress monitor?
Progress of Zipping of folder on ProgressMonitor??
Timers/Progress problem
ProgressMonitor and threading ...
Change size of progress monitor