GIF Image loading problem in an Dynamic Applet - urgent


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: GIF Image loading problem in an Dynamic Applet - urgent

  1. #1
    Gaurav Guest

    GIF Image loading problem in an Dynamic Applet - urgent


    I am making a Dynamic Banner Applet where each image has a specified amount
    of time to be displayed.
    The problem is that if the first image to be displayed happens to be an animated
    GIF then the applet does not pick up the rest of the images after the amount
    of time for the first image has expired. It keeps repeating the first image
    itself.
    The applet works in all other cases.

  2. #2
    deviraja shetty Guest

    Re: GIF Image loading problem in an Dynamic Applet - urgent


    Hi gaurav,
    The problem with applets is it has poor support for gif
    pictures. When you load a GIF pix in yr applet,
    the paint() method is called in an infinite loop and hence other
    pictures do not get loaded. This can be verified by putting a
    System.out statemnt in yr paint method and looking at the o/p in
    the java console.


    "Gaurav" <Gaurav_Kumar@satyam.com> wrote:
    >
    >I am making a Dynamic Banner Applet where each image has a specified amount
    >of time to be displayed.
    >The problem is that if the first image to be displayed happens to be an

    animated
    >GIF then the applet does not pick up the rest of the images after the amount
    >of time for the first image has expired. It keeps repeating the first image
    >itself.
    >The applet works in all other cases.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center