Border vpBorder = p.getViewportBorder(); if (vpBorder == null || vpBorder instanceof UIResource) { vpBorder = UIManager.getBorder("ScrollPane.viewportBorder"); p.setViewportBorder(vpBorder); }
  protected void installDefaults(JScrollPane p)  {    scrollpane = p;    LookAndFeel.installColorsAndFont(p, "ScrollPane.background",                                     "ScrollPane.foreground",                                     "ScrollPane.font");    LookAndFeel.installBorder(p, "ScrollPane.border");    p.setOpaque(true);  }