This is a conceptual question... I'm planning to make a simple paint program using swing and I want to plan it in advance before I actually code it.
I want to be able to draw some rectangles using fillRect, etc, and then be able to drag those rectangles around the canvas.
How would I go about doing this? I have been able to draw rectangles, but I can't seem to get how to drag them around with grabby points. Does that make sense?
Similarly, what if I want to select the rectangle and then resize it?