Yellow Window under JLabel when the mouse is above it -> how to remove?

Viewed 61

I made a JLabel in a Jframe. If I now move my mouse over the JLabel a yellow small box appears(Screenshot). How can I disable this in Code?

1 Answers

That looks like an empty tooltip. You can turn it off by calling setToolTipText(null) on the JLabel.

Alternatively in a GUI editor you should be able to disable it from the properties of the JLabel. Look for a tooltip property.

Related