I have a label and a checkbox next to each other, and I want a tooltip to be displayed when the mouse goes over the label or the checkbox. The tooltip should be displayed as long as the mouse is over the label/checkbox and should disappear once the mouse moves away from the label/checkbox.

Here is the code:

CheckBox cb = new CheckBox();
FieldLabel fl = new FieldLabel(cb, "Label Name");
ToolTipConfig ttc = new ToolTipConfig();
This works as long as the checkbox is enabled. But the checkbox can be disabled, and if the checkbox is disabled, then sometimes the tooltip will not disappear when moving away from the checkbox. It seems like the tooltip is correctly dismissed if I move the mouse left/right/down from the checkbox, but if I move the mouse up from the checkbox then it may not be dismissed.