aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Updaing the graphics object on mouse click Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Updaing the graphics object on mouse click" Watch "Updaing the graphics object on mouse click" New topic
Author

Updaing the graphics object on mouse click

Ganesh kumar
Greenhorn

Joined: Dec 26, 2008
Posts: 9
Hi,

I am drawing some lines on J Panel. On clicking any particular line i am trying to change the background
of the line with rectangle to give some high lighting effect. I am able to get the coordinates correctly.
But what ever i am trying in the mouse click event in not reflecting in the panel.I have placed the abstract
piece of code.Kindly let me know whats the mistake i am doing.Thank you.

Code Flow

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Updaing the graphics object on mouse click