UIDefaults defaults = UIManager.getLookAndFeelDefaults(); table.setFont(defaults.getFont("Table.font")); table.setGridColor(defaults.getColor("Table.gridColor")); table.setForeground(defaults.getColor("Table.foreground")); table.setBackground(defaults.getColor("Table.background")); table.setSelectionForeground(defaults.getColor("Table.selectionForeground")); table.setSelectionBackground(defaults.getColor("Table.selectionBackground"));
LookAndFeel.installColorsAndFont(table, "Table.background", "Table.foreground", "Table.font"); table.setGridColor(UIManager.getColor("Table.gridColor")); table.setSelectionForeground(UIManager.getColor("Table.selectionForeground")); table.setSelectionBackground(UIManager.getColor("Table.selectionBackground"));
  protected void installDefaults()   {    UIDefaults defaults = UIManager.getLookAndFeelDefaults();    table.setFont(defaults.getFont("Table.font"));    table.setGridColor(defaults.getColor("Table.gridColor"));    table.setForeground(defaults.getColor("Table.foreground"));    table.setBackground(defaults.getColor("Table.background"));    table.setSelectionForeground(defaults.getColor("Table.selectionForeground"));    table.setSelectionBackground(defaults.getColor("Table.selectionBackground"));    table.setOpaque(true);    highlightCellBorder = defaults.getBorder("Table.focusCellHighlightBorder");    cellBorder = BorderFactory.createEmptyBorder(1, 1, 1, 1);  }