aspose 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
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

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: EventHandling on pi-chart