JComponent () { JPanel panel = new JPanel(new GridBagLayout()); GridBag gc = new GridBag().nextLine().setDefaultFill(GridBagConstraints.VERTICAL).setDefaultWeightY(1.0); JBLabel label = new JBLabel(ApplicationBundle.message("light.edit.status.bar.notification.label.text")); panel.add(label, gc.next().insets(JBUI.insets(0, 7, 0, 5))); ActionLink actionLink = createActionLink(); panel.add(actionLink, gc.next()); panel.setOpaque(false); configureTooltip(label, actionLink); ApplicationManager.getApplication().getMessageBus().connect(this).subscribe(EditorColorsManager.TOPIC, scheme -> { configureTooltip(label, actionLink); }); return panel; }