thumbColor = defaults.getColor("ScrollBar.thumb"); thumbDarkShadowColor = defaults.getColor("ScrollBar.thumbDarkShadow"); thumbHighlightColor = defaults.getColor("ScrollBar.thumbHighlight"); thumbLightShadowColor = defaults.getColor("ScrollBar.thumbShadow");
thumbColor = UIManager.getColor("ScrollBar.thumb"); thumbDarkShadowColor = UIManager.getColor("ScrollBar.thumbDarkShadow"); thumbHighlightColor = UIManager.getColor("ScrollBar.thumbHighlight"); thumbLightShadowColor = UIManager.getColor("ScrollBar.thumbShadow");
  protected void installDefaults()  {    UIDefaults defaults = UIManager.getLookAndFeelDefaults();    scrollbar.setForeground(defaults.getColor("ScrollBar.foreground"));    scrollbar.setBackground(defaults.getColor("ScrollBar.background"));    scrollbar.setBorder(defaults.getBorder("ScrollBar.border"));    scrollbar.setOpaque(true);    scrollbar.setLayout(this);    thumbColor = defaults.getColor("ScrollBar.thumb");    thumbDarkShadowColor = defaults.getColor("ScrollBar.thumbDarkShadow");    thumbHighlightColor = defaults.getColor("ScrollBar.thumbHighlight");    thumbLightShadowColor = defaults.getColor("ScrollBar.thumbShadow");    maximumThumbSize = defaults.getDimension("ScrollBar.maximumThumbSize");    minimumThumbSize = defaults.getDimension("ScrollBar.minimumThumbSize");  }