I want to make a java program that can draw some graphics like rectangle, circle, polygon. When we draw , we can resize or move it after. How can I do this.. Java can do this kind of program ? Could u tell me the website that teach about this ?

I want to make it and use it in the internet(applet)
Thank you
Kee