I am trying to set up rotation for my falling object (a composite shape) so that it rotates 90 degrees every time a key is pressed around a center point. I am wanting to use the java.awt.Point library to designate one of the pieces of my composite shape as the "center of rotation" and then use the .Point location to for the points prior position, and then set the new x and y locations...and then somehow set the new coordinates of new position.
I am still very new to programming. Many times I will understand the theory behind what I need to do, but get really confused with how to actually go about implementing it.
Can anyone help with a general example at how to go about rotating a comp. shape around a center?