Showing all tooltips in same place (by using a Label?)

Hi All,

I’m not sure if this is the best way to achieve this behaviour, is there any other easier way?

I’m trying to setup a Label that shows the tooltip for whatever component the mouse is over so the text always shows in the same place. Additionally I also want to clear the text if the mouse is not over any Component.
My fist try has been creating a custom LookAndFeel that stores a pointer to a label and in his drawTooltip method it just sets the text on that label.

I’m having some issues as it shows some weird stuff depending on the position of the mouse over the object (as you can see in the image).

Screenshot (22)

// hint Label
hint.setBounds(480, 20, 150, 100);

MyLookAndFeel mlf = new MyLookAndFeel(&hint);
// Tooltipwindow tt{this, 0}