How can we draw the shapes in Java like we do in paint?
For example if I want to draw the rectangle this command will draw it:
g2.fill3DRect(mt, mf, 45, 45, true);
But how can I increase the or decrease the size of an object or shape during run-time using mouse like we did in paint?