Hello,
I would like to know how to update a JFreeChart graph when I click on a buton.
Somebody know how to do ?
Thank you.
Have a good day.
Update of a JFreeChart graph
-
- Posts: 13
- Joined: Tue May 15, 2012 2:17 pm
- antibot: No, of course not.
-
- Posts: 1634
- Joined: Sat Feb 17, 2007 1:51 pm
Re: Update of a JFreeChart graph
Give the ActionListener of the button a reference to a dataset that is used in a chart, and update the dataset in the actionPerformed() method.
-
- Posts: 13
- Joined: Tue May 15, 2012 2:17 pm
- antibot: No, of course not.
Re: Update of a JFreeChart graph
Thank you for you reply.
I search the method to update the dataset and redisplay.
I search the method to update the dataset and redisplay.