Image takes > 8sec to paint after loading!!!
Hi,
I am having this problem of slow displaying jpg image (~120kb - 576 x 432 pixels) in my application. I checked whether it is the loading time by using a check on image height and width != -1 (and also by using imageUpdate method). I found that the loading time is quite fast but after the image is completely loaded and available, it takes more than 8 seconds to display (paint) an image on a JPanel (which I think is awfully lot to wait for). This is the case only for the first time an image is opened in the application. I also tried using the media tracker to solve this problem but in vain. I haven't been able to locate the source of this problem. I am wondering whether this is a machine related problem (corruption in some windows files) or Java related issue (probably double buffering) and also whether I should be facing such a problem. My machine config. is PIII 450, 256MB RAM 16MB Riva TNT and using jdk1.3.1 (+java3D for OGL) on Win98 SE. I tried searching for such particular problem on the forums but could not find any help. Has anyone faced such a situation? Also is there a way to display an image as it loads (like in a browser) so that the user can see that something is happening?
Thanks for any suggestions.
Nick
-
nikreations@yahoo.com
Nikhilesh Haval
MSc Software System Technology
Department of Computer Science
University of Sheffield
United Kingdom
--

