scrollListener = createScrollListener(); setVerticalScrollBarPolicy(vsbPolicy); setVerticalScrollBar(createVerticalScrollBar()); setHorizontalScrollBarPolicy(hsbPolicy); setHorizontalScrollBar(createHorizontalScrollBar()); setViewportView(view); setLayout(new ScrollPaneLayout()); setOpaque(false); updateUI();
this(null);
  public JScrollPane(Component view, int vsbPolicy, int hsbPolicy)   {    scrollListener = createScrollListener();    setVerticalScrollBarPolicy(vsbPolicy);    setVerticalScrollBar(createVerticalScrollBar());    setHorizontalScrollBarPolicy(hsbPolicy);    setHorizontalScrollBar(createHorizontalScrollBar());    setViewportView(view);    setLayout(new ScrollPaneLayout());    setOpaque(false);    updateUI();  }