Hello,
I'm showing a tooltip when the mouse moves over a Gantt chart item in a Gantt chart. I set this tooltip to a text that tells the user more about that item. Problem is that if the tooltip text is very large, it will fall ofscreen.
Using an endline \n doesn't work. It there a possibility to do this?
Here is my code:
public class MyChartMouseListener implements ChartMouseListener
{
/**
* Event generated when mouse moved over a JFreeChart item
*
* @param event event that was generated
*/
public void chartMouseMoved(ChartMouseEvent event)
{
CategoryItemEntity entity = (CategoryItemEntity) event.getEntity();
if(entity != null)
{
entity.setToolTipText("text");
}
}
Thanks in advance,
Jeroen
using endline with tooltip text
Maybe this helps: http://www.jfree.org/phpBB2/viewtopic.php?t=7085