File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes EventHandling on pi-chart Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "EventHandling on pi-chart" Watch "EventHandling on pi-chart" New topic
Author

EventHandling on pi-chart

Nuzhar Khan
Greenhorn

Joined: Jan 30, 2001
Posts: 7
I use a panel on which i add mouselistener so i can recive evnt of mouse over.
i made a pi-chart on panel using drawArc method of Graphics.
I draw each sector of pi chart with different color
(by changing the drawing color).
means i get a chart consist on 4 sector each sector shows different color
when mouse move over panel or pichart i recieve event
but i want if mouse is over specific region say red color sector
i get know that mouse is over red region?
how is possible?
please rectify my problem as soon as possibel
Thanx in advance

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EventHandling on pi-chart