public void load(String filename, int _columns, int _totalFrames, int _width, int _height) { Toolkit tk = Toolkit.getDefaultToolkit(); image = tk.getImage(getURL(filename)); while(image.getWidth(frame) <= 0); columns = _columns; totalFrames = _totalFrames; frameWidth = _width; frameHeight = _height; }
That while statement just makes no sense to me. I have googled and looked all over and i can't make any sense of it. I have checked the entire book and he never explains that line of code. Just wondering what it does if anything?