Border vpBorder = scrollpane.getViewportBorder(); if (vpBorder != null) { Rectangle r = scrollpane.getViewportBorderBounds(); vpBorder.paintBorder(scrollpane, g, r.x, r.y, r.width, r.height); }
  public void paint(Graphics g, JComponent c)  {          // do nothing; the normal painting-of-children algorithm, along with    // ScrollPaneLayout, does all the relevant work.  }