JScrollPane (JList list) { JScrollPane ret = new JScrollPane(list, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); ret.setHorizontalScrollBar(null); ret.setFocusable(false); ret.getVerticalScrollBar().setFocusable(false); ret.setBorder(null); return ret; }