Forum Stats

  • 3,875,873 Users
  • 2,266,977 Discussions
  • 7,912,362 Comments

Discussions

MediaTracker.statusID() method

801421
801421 Member Posts: 40
edited May 30, 2010 7:57AM in Abstract Window Toolkit (AWT)
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 .

Comments

  • YoungWinston
    YoungWinston Member Posts: 4,310
    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
  • darrylburke
    darrylburke Member Posts: 18,007
    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.
This discussion has been closed.