How to dispose tooltip.
I have a drawn an array of Rectangle.Now,i want to add tooltip to that,to display some string that i have it in another array.So in mouseMoved method i set the tooltip,by checking the condition,if the mouse comes over the rectangle the tooltip should display,now the problem is even after coming out of the rectangle region the tooltip is getting displayed,how to getride of the problem,can anyone help me.please
public void mouseMoved(MouseEvent e)
Point p = e.getPoint();
Rectangle  rectangle = dlprect_list.toArray(new Rectangle[dlprect_list.size()]);
String  dlpstr = dlpString.toArray(new String[dlpString.size()]);