JComponent () { JComponent component = super.createSouthPanel(); component.setBorder(JBUI.Borders.empty(13, 24, 15, 24)); UIUtil.setBackgroundRecursively(component, TipUiSettings.getPanelBackground()); String previousTipKey = "PreviousTip"; component.getInputMap(WHEN_ANCESTOR_OF_FOCUSED_COMPONENT) .put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, InputEvent.SHIFT_DOWN_MASK), previousTipKey); component.getActionMap().put(previousTipKey, myTipPanel.myPreviousTipAction); return component; }