HyperlinkLabel (final @NlsContexts.Label String message) { final HyperlinkLabel link = new HyperlinkLabel(""); link.setIcon(AllIcons.General.ContextHelp); link.setUseIconAsLink(true); link.setIconTextGap(0); link.addHyperlinkListener(new HyperlinkAdapter() { @Override protected void hyperlinkActivated(@NotNull HyperlinkEvent e) { final JLabel label = new JLabel(message); label.setBorder(HintUtil.createHintBorder()); label.setBackground(HintUtil.getInformationColor()); label.setOpaque(true); HintManager.getInstance() .showHint(label, RelativePoint.getSouthEastOf(link), HintManager.HIDE_BY_ANY_KEY | HintManager.HIDE_BY_TEXT_CHANGE, -1); } }); return link; }