i need to create a basic drawing tool with basing drawing function

1:it can draw Rectanle,Circle,Line and i also want to select these shapes on mouse click.
2:it can draw picture and select it like regular shapes.
3:Upon selection i also want to move them within drawing area.
4:it can also have funcanality of Send to Back and Bring to Front.
5:it can store the drawing in file and also open from file.

it is an assignment from my Prof. plz help me i am new to java.
i did not know how to do this.Plz do something for me.Example code will help me
Thanks

Good for you. Get started. If you have a specific question, post your code, any and all error/compiler messages you got, and a detailed description of your problem, and we will help.