| ||||||||||
Yes, if you did them in succession, but the problem is only about figuring them out separately. Mark Guzdial |
Remember that Y starts at 0 at the top, and X starts at 0 at the left. So if Y is at getHeight()/2, then that has to be halfway between top and bottom, and X at getWidth()/2 is in the middle between right and left. Mark Guzdial |