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
Please sign in to leave a comment.
No, it is not a bug. TextFieldWithAutoCompletion is based on the IntelliJ editor component which does not support Swing tooltips.
Since it extends JPanel, I supposed that could work. Is there a workaround? I couldn't find one.
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.