File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "EventHandling on pi-chart" Watch "EventHandling on pi-chart" New topic

EventHandling on pi-chart

Nuzhar Khan

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

Don't get me started about those stupid light bulbs.
subject: EventHandling on pi-chart
It's not a secret anymore!