Hi Experts ..
Assume that I draw a polygon in a panel (swing app), How can I change the color of the polygon when it is clicked?? I have image/map in a panel, the user draw polygon or rectangle to surround an area in the map!! I want to allow the user to be able to move this polygon or rectangle!! so when he clicks on it, its color changed showing that it is selected!! and he can move it!!
At the first stage I want to know how can I change its color??