Tooltip not getting displayed...

I have want to add tooltip went the mouse moves over the rectangle.so,I added a label to a panel and the panel to another panel.(I didn't use windows/JFrame,since I have to bring this applet in the HTML.)when the mouse comes over the rectangle,panel should visible or else it should not.But now,for me the tooltip is not displaying when the mouse moves over the rectangle.