how to remove images drawn by using Graphics Object
I am developing one application.I have drawn some shapes on Panel object like line, Triangle etc using Graphics object. now my requirement is to select and delete required shape. i used some mouse events and selected one of the shapes. Now how to remove the selected shape? If i call paintComponents(Graphics g)method all the shapes on panel object are removing. But i want to remove only the selected one. Please help me.
Thanks in advance,