This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
You are never initialising the Point2D objects in your MyRectangle class. In your constructor (or in the declaration) you need to create new objects for these. For example, your method setBottomLeftPoint attempts to do something like null.setLocation(...).
OR, simply assign the Point2D objects that you are passing to your constructor to your instance variables.
Joined: Oct 02, 2009
a lot of thanks.It seems I didn't understand that staff thoroughly.