JComponent () { JLabel icon = new JLabel(AllIcons.General.BalloonWarning); icon.setVerticalAlignment(SwingConstants.TOP); JLabel label = new JLabel(KeyMapBundle.message("dialog.conflicts.text")); label.setBorder(JBUI.Borders.emptyLeft(2)); if (ScreenReader.isActive()) { // Supports TAB/Shift-TAB navigation label.setFocusable(true); } JScrollPane scroll = ScrollPaneFactory.createScrollPane(null, true); scroll.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); scroll.setViewport(new GradientViewport(myConflictsContainer, JBUI.insets(5), false)); scroll.getVerticalScrollBar().setOpaque(false); scroll.getViewport().setOpaque(false); scroll.setOpaque(false); JBPanel panel = new JBPanel(new BorderLayout()); panel.add(BorderLayout.NORTH, label); panel.add(BorderLayout.CENTER, scroll); myConflictsPanel.add(BorderLayout.WEST, icon); myConflictsPanel.add(BorderLayout.CENTER, panel); myConflictsContainer.setOpaque(false); return myConflictsPanel; }