UIDefaults defaults = UIManager.getLookAndFeelDefaults();  tree.setFont(defaults.getFont("Tree.font")); tree.setForeground(defaults.getColor("Tree.foreground")); tree.setBackground(defaults.getColor("Tree.background"));
LookAndFeel.installColorsAndFont(tree, "Tree.background", "Tree.foreground", "Tree.font");
  protected void installDefaults()  {    UIDefaults defaults = UIManager.getLookAndFeelDefaults();    tree.setFont(defaults.getFont("Tree.font"));    tree.setForeground(defaults.getColor("Tree.foreground"));    tree.setBackground(defaults.getColor("Tree.background"));    tree.setOpaque(true);    rightChildIndent = defaults.getInt("Tree.rightChildIndent");    leftChildIndent = defaults.getInt("Tree.leftChildIndent");    setRowHeight(defaults.getInt("Tree.rowHeight"));    tree.requestFocusInWindow(false);    tree.setScrollsOnExpand(defaults.getBoolean("Tree.scrollsOnExpand"));    setExpandedIcon(defaults.getIcon("Tree.expandedIcon"));    setCollapsedIcon(defaults.getIcon("Tree.collapsedIcon"));  }