code: protected JScrollPane wrapContent(final JComponent panel) {
          panel.setMaximumSize(new Dimension(WIDTH_CONTENT, Integer.MAX_VALUE));
          panel.setAlignmentX(Component.LEFT_ALIGNMENT);
  
          final DCPanel wrappingPanel = new DCPanel();
          final BoxLayout layout = new BoxLayout(wrappingPanel, BoxLayout.PAGE_AXIS);
          wrappingPanel.setLayout(layout);
          wrappingPanel.add(panel);
          wrappingPanel.setBorder(new EmptyBorder(0, MARGIN_LEFT, 0, 0));
  
          return WidgetUtils.scrolleable(wrappingPanel);
      }
docs: Wraps a content panel in a scroll pane and applies a maximum width to the
  content to keep it nicely in place on the screen.
  
  @param panel
  @return