2 Replies Latest reply: May 30, 2010 6:57 AM by Darryl Burke RSS

    MediaTracker.statusID() method

    801421
      if (tracker.statusID(1, false) ==
                                MediaTracker.COMPLETE){ }
      the second(boolean) argument in statusID() is about the images which are yet to be loaded .A true means there are more images and a false means that loading is complete .
      So,since MediaTracker.COMPLETE flag is used ,then would this make sense ?:
      if (tracker.statusID(1, true) ==
                                MediaTracker.COMPLETE){ }
      tracker is a MediaTracker object.
      Please correct me if I have interpreted the meaning of the boolean argument wrongly .
        • 1. Re: MediaTracker.statusID() method
          YoungWinston
          pbhushan wrote:
          Please correct me if I have interpreted the meaning of the boolean argument wrongly .
          I don't think so, but I've never used this class. According to the API, the true also starts loading any images that haven't already started. It appears that you also have a waitForID() method which may be preferable to looping and checking the statusID() every time.

          Winston
          • 2. This Thread is now moved
            Darryl Burke
            Note: This thread was originally posted in the [New To Java|http://forums.sun.com/forum.jspa?forumID=54] forum, but moved to this forum for closer topic alignment.