JScrollPane () { JScrollPane resultsScroll = new JBScrollPane(myResultsList) { @Override public void updateUI() { boolean isBorderNull = getBorder() == null; super.updateUI(); if (isBorderNull) setBorder(null); } }; resultsScroll.setBorder(null); resultsScroll.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); ComponentUtil.putClientProperty(resultsScroll.getVerticalScrollBar(), JBScrollPane.IGNORE_SCROLLBAR_IN_INSETS, true); resultsScroll.setPreferredSize(JBUI.size(670, JBUI.CurrentTheme.BigPopup.maxListHeight())); return resultsScroll; }