TextFieldWithAutoCompletion.setTooltipText does not work.

Hello,

I have a com.intellij.ui.TextFieldWithAutoCompletion object with with setOneLineMode set to true. I called

setToolTipText("My Tooltip");


but unfortunately it is not displayed. Is this a bug in the OpenAPI ?

Best Regards,

George Gastaldi

3 comments
Comment actions Permalink

No, it is not a bug. TextFieldWithAutoCompletion is based on the IntelliJ editor component which does not support Swing tooltips.

0
Comment actions Permalink

Since it extends JPanel, I supposed that could work. Is there a workaround? I couldn't find one.

0
Comment actions Permalink

The IntelliJ IDEA UI does not use tooltips for editor fields anywhere, so the users of your plugin may not expect to see one on your text field. Please consider putting your explanatory text on a label next to the text field.

0

Please sign in to leave a comment.