Search found 2 matches

by leopris
Tue Jun 27, 2017 12:27 am
Forum: JFreeChart
Topic: attach a context menu to each point
Replies: 3
Views: 3398

Re: attach a context menu to each point

Thanks, yes, a ChartMouseListener on each point seems to be exactly right. Then in mouseClicked, detect the right-mouse-button, and make the popup menu visible. I can get the (x,y) of the points now but it is not possible to add a popup menu to a Number or double, for example. I'm looking for how to...
by leopris
Mon Jun 26, 2017 5:21 pm
Forum: JFreeChart
Topic: attach a context menu to each point
Replies: 3
Views: 3398

attach a context menu to each point

Hello - I want to attach a context menu to each point in an XYPlot but cannot find how to do it completely. I make a JPopupMenu with MenuItem's then want to add that menu to a point. The choices of each point's menu will apply only to that point. The ChartPanel doesn't seem to have a call to help wi...