UIDefaults defaults = UIManager.getLookAndFeelDefaults(); p.setForeground(defaults.getColor("ScrollPane.foreground")); p.setBackground(defaults.getColor("ScrollPane.background")); p.setFont(defaults.getFont("ScrollPane.font")); p.setBorder(defaults.getBorder("ScrollPane.border"));
LookAndFeel.installColorsAndFont(p, "ScrollPane.background", "ScrollPane.foreground", "ScrollPane.font"); LookAndFeel.installBorder(p, "ScrollPane.border");
  protected void installDefaults(JScrollPane p)  {    scrollpane = p;    UIDefaults defaults = UIManager.getLookAndFeelDefaults();    p.setForeground(defaults.getColor("ScrollPane.foreground"));    p.setBackground(defaults.getColor("ScrollPane.background"));    p.setFont(defaults.getFont("ScrollPane.font"));    p.setBorder(defaults.getBorder("ScrollPane.border"));    p.setOpaque(true);  }