how to handle a click event on a Pie chart.

Hi guys,

Well in my project, there is a client built using swings.

In one of the applications.i am actually getting the status of some data & displaying this information in a Pie chart .

Now the user wants an option of clicking on this pie chart to trigger some action such as pulling the data from the database & displaying this in a JTable.

So i absolutely have no idea how to start with this problem, basically i want to know how to capture the click event on a Pie Chart.

Can anyone help me in this regard.

Thanks & Regards,

Vishal

[597 byte] By [vishal_vja] at [2007-11-27 6:06:17]
# 1
could you add a mouselistener to the pane or whatever container the pie chart is drawn on? Then override the mouseClicked method to do whatever you want?Message was edited by: petes1234
petes1234a at 2007-7-12 16:21:36 > top of Java-index,Desktop,Core GUI APIs...