A discussion forum for JFreeChart (a 2D chart library for the Java platform).
-
hamiljl
Post
by hamiljl » Fri Jan 28, 2005 9:43 pm
Is it possible to add a menu item to the plot popup menu. An example would be that I want to add a export function under the save as menu item and export the data. I want this menu to appear in the popup menu if possible. Is there a way to do this in JFreeChart?
Thanks
-
RCDran
- Posts: 29
- Joined: Wed Feb 25, 2004 4:18 am
- Location: Japan
Post
by RCDran » Sat Jan 29, 2005 8:29 am
extend ChartPanel and handle by yourselves, thats easy and fast.
--
RCDran
-
skunk
Post
by skunk » Sat Jan 29, 2005 8:03 pm
No need to extend ChartPanel
Just call chartPanel.getPopupMenu() and add whatever options you need to the menu.