Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ProgressMonitorInputStream  RSS feed

 
kamilla miesak
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i'm trying to use ProgressMonitorInputStream when loading a file. From what I understand the ProgressMonitorInputStream should pop up a dialog box informing the user that file is loading if the time to load exceeds 2 seconds (default value that can be changed and i've tried it already).
However even though it takes several seconds to open my file (i've confirmed it with System.currentTimeMillis()), the dialog box does not come up. I've been searching the Internet and Sun's knowledgebase, but so far no luck .
Has anybody encountered that problem before? Any ideas on how to fix it?
Thanks.
 
Dan Cranmer
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got the following example to work, but I had to have a really big file, greater than 30MB, on a 700Mhz system.

[ July 26, 2002: Message edited by: Dan Cranmer ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!