How to disable tooltip which show while the mosue point to t

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Carrie

How to disable tooltip which show while the mosue point to t

Post by Carrie » Fri Feb 14, 2003 7:53 am

How to disable tooltip which show while the mosue point to the bar in the chart?

David Gilbert

Re: How to disable tooltip which show while the mosue point

Post by David Gilbert » Fri Feb 14, 2003 7:57 am

Hi Carrie,

You can either:

(1) Set the tool tip generator to null, that way no tooltips will be generated (and so there is nothing to display);

(2) Use the setDisplayToolTips(boolean) method in the ChartPanel class to suppress the display of tooltips.

Regards,

Dave Gilbert

Carrie

Re: How to disable tooltip which show while the mosue point

Post by Carrie » Fri Feb 14, 2003 8:24 am

How can I call the setDisplayToolTips method??
by new a ChartPanel object ??

Carrie

Re: How to disable tooltip which show while the mosue point

Post by Carrie » Fri Feb 14, 2003 8:32 am

I have add the following code to my program, but the tool tips is also show?? Could you please help

ChartPanel cp = new ChartPanel(chart);
cp.setGenerateToolTips(false);

Locked