Bookmark Topic Watch Topic
  • New Topic

Problem with ProgressMonitor

 
Hemanth Kumar Simhadri
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 4632
 
Rob Spoor
Sheriff
Pie
Posts: 20512
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
UseOneThreadPerQuestion. Since the other thread has more replies I'll close this one.
 
    Bookmark Topic Watch Topic
  • New Topic