private void defineScrollPane(UIDefaults d){
  String c=PAINTER_PREFIX + "ScrollPanePainter";
  String p="ScrollPane";
  d.put(p + ".opaque",Boolean.FALSE);
  d.put(p + ".contentMargins",new InsetsUIResource(3,3,3,3));
  d.put(p + ".backgroundPainter",new LazyPainter(c,ScrollPanePainter.Which.BACKGROUND_ENABLED));
  d.put(p + "[Enabled+Focused].borderPainter",new LazyPainter(c,ScrollPanePainter.Which.BORDER_ENABLED_FOCUSED));
  d.put(p + "[Enabled].borderPainter",new LazyPainter(c,ScrollPanePainter.Which.BORDER_ENABLED));
  d.put(p + ".cornerPainter",new LazyPainter(c,ScrollPanePainter.Which.CORNER_ENABLED));
  p="Viewport";
  d.put(p + ".contentMargins",new InsetsUIResource(0,0,0,0));
  d.put(p + ".opaque",Boolean.TRUE);
}

private void defineScrollPane ( UIDefaults d ) { String c = PAINTER_PREFIX + "ScrollPanePainter" ; String p = "ScrollPane" ; d . put ( p + ".opaque" , Boolean . FALSE ) ; d . put ( p + ".contentMargins" , new InsetsUIResource ( 3 , 3 , 3 , 3 ) ) ; d . put ( p + ".backgroundPainter" , new LazyPainter ( c , ScrollPanePainter . Which . BACKGROUND_ENABLED ) ) ; d . put ( p + "[Enabled+Focused].borderPainter" , new LazyPainter ( c , ScrollPanePainter . Which . BORDER_ENABLED_FOCUSED ) ) ; d . put ( p + "[Enabled].borderPainter" , new LazyPainter ( c , ScrollPanePainter . Which . BORDER_ENABLED ) ) ; d . put ( p + ".cornerPainter" , new LazyPainter ( c , ScrollPanePainter . Which . CORNER_ENABLED ) ) ; p = "Viewport" ; d . put ( p + ".contentMargins" , new InsetsUIResource ( 0 , 0 , 0 , 0 ) ) ; d . put ( p + ".opaque" , Boolean . TRUE ) ; }
initialize the scroll pane ui
