Rect « Graphics « Java Swing Q&A





1. draw rect problem?    coderanch.com

2. Undo Draw rect    coderanch.com

Hello Jeff Thank you very much for your reply, now I am not sure how to do this can you give me an small code example. My component is a panel currently which in its paint method draws the image and this rectangle currently is drawn on the panel graphics is the mouse dragged along now how can i make the ...