Component (JList<? extends ToolWindow> list, ToolWindow value, int index, boolean isSelected, boolean cellHasFocus) { UIUtil.setBackgroundRecursively(myPanel, UIUtil.getListBackground(isSelected, true)); myTextLabel.setText(value.getStripeTitle()); myTextLabel.setIcon(value.getIcon()); myTextLabel.setForeground(UIUtil.getListForeground(isSelected, true)); String activateActionId = ActivateToolWindowAction.getActionIdForToolWindow(value.getId()); KeyboardShortcut shortcut = ActionManager.getInstance().getKeyboardShortcut(activateActionId); if (shortcut != null) { myShortcutLabel.setText(KeymapUtil.getShortcutText(shortcut)); } else { myShortcutLabel.setText(""); } myShortcutLabel.setForeground(isSelected ? UIManager.getColor("MenuItem.acceleratorSelectionForeground") : UIManager.getColor("MenuItem.acceleratorForeground")); return myPanel; }