# UIComponent.tooltip [← UIComponent](index.md) · [← Master](../../wiki.md) tooltip(java.lang.String tooltip) UIComponent Set a tooltip that will be displayed at the bottom of component's frame. --- tooltip(java.lang.String tooltip, int direction) UIComponent Set a tooltip that will be displayed at specified side of component's frame.