RenderRects r = new RecnderRects(); r.getLeft(); Where is getSize()? Are you using Component's getSize() method?
Snigdha<br />Sun Certified Programmer for the Java™ 2 Platform
Joined: Aug 05, 2002
getLeft and compareSize (not getSize, sorry) are in the Rectangle class. When renderFromLeft is called the rectangles in the vector are supposed to be redrawn starting with the rectangle that is furthest from the left, so that the rectangle closest to the left is on top. Thanks, Hansie