I've created an XYPlot in a ChartPanel. On this plot I use a XYItemrenderer. On this renderer I initially set the tooltips of by calling the :
Code: Select all
renderer.setTooltipGenerator(null);
In my program I have a button which (should) cause the tooltips to be shown again. To do this I use the following code:
Code: Select all
tooltip=new StandardXYTooltipGenerator();
renderer.setTooltipGenerater(tooltip);
So it seems that changing the on/off functionality run-time, only has effact when I click on the chart area before hovering over the datamarkers to see the effect, HOWEVER.....when I Initialy put the tooltips ON, everything works like it should be !!
Can anyone tell me what's the problem here and if I'm doing something wrong ????