Disable context menu for XYPlot

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
cowwoc
Posts: 6
Joined: Wed May 07, 2008 7:33 pm

Disable context menu for XYPlot

Post by cowwoc » Fri May 30, 2008 4:26 pm

Hi,

Is it possible to disable all mouse interactions, including the right-click context menu, associated with the XYPlot graphs?

Also, has anyone updated the so-called "fast classes" to the latest version of JFreeChart?

Thanks,
Gili

skunk
Posts: 1087
Joined: Thu Jun 02, 2005 10:14 pm
Location: Brisbane, Australia

Post by skunk » Fri May 30, 2008 4:36 pm

Code: Select all

chartPanel.setPopupMenu(null);

cowwoc
Posts: 6
Joined: Wed May 07, 2008 7:33 pm

Post by cowwoc » Fri May 30, 2008 4:39 pm

skunk wrote:

Code: Select all

chartPanel.setPopupMenu(null);
That worked perfectly. Thank you! :)

Locked