A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
Problem with ProgressMonitor
Hemanth Kumar Simhadri
Joined: Apr 22, 2010
Jul 22, 2010 04:49:55
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...",
note = "Searching file " + currentFileNumber +
"/" + totalNumberOfFiles + "... Found " +
searchResults.size() + " records...";
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
Joined: Jun 09, 2003
Jul 22, 2010 05:41:52
also posted here
Joined: Oct 27, 2005
Jul 22, 2010 08:20:32
. 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:
subject: Problem with ProgressMonitor
Change size of progress monitor
Progress of Zipping of folder on ProgressMonitor??
How to Resize ProgressMonitor? How to display the message/note in two lines in progress monitor?
ProgressMonitor and threading ...
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014