This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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