how to resize a shape on a jpanel, using mouse
I have written a program for my java project on, "my paint application". i have attached the code here. i have a jpanel on a jframe. i have used the panel as a canvas. i have created buttons, when the user clicks these , a shape is drawn. i am able to move a shape with the mouse. i want to resize the shapes when they are dragged. i have written the code for it, it is compiled successfully, but the shape is not resized.
can anyone please help me?
one more problem, is with the cursors. the cursor changes currectly, when the mouse touches the top and left borders of the shape, but nothing happens when it touches the other two sides.
Any help will be appreciated.