protected void installDefaults(){
  list.setLayout(null);
  LookAndFeel.installBorder(list,"List.border");
  LookAndFeel.installColorsAndFont(list,"List.background","List.foreground","List.font");
  LookAndFeel.installProperty(list,"opaque",Boolean.TRUE);
  if (list.getCellRenderer() == null) {
    list.setCellRenderer((ListCellRenderer)(UIManager.get("List.cellRenderer")));
  }
  Color sbg=list.getSelectionBackground();
  if (sbg == null || sbg instanceof UIResource) {
    list.setSelectionBackground(UIManager.getColor("List.selectionBackground"));
  }
  Color sfg=list.getSelectionForeground();
  if (sfg == null || sfg instanceof UIResource) {
    list.setSelectionForeground(UIManager.getColor("List.selectionForeground"));
  }
  Long l=(Long)UIManager.get("List.timeFactor");
  timeFactor=(l != null) ? l.longValue() : 1000L;
  updateIsFileList();
}

protected void installDefaults ( ) { list . setLayout ( null ) ; LookAndFeel . installBorder ( list , "List.border" ) ; LookAndFeel . installColorsAndFont ( list , "List.background" , "List.foreground" , "List.font" ) ; LookAndFeel . installProperty ( list , "opaque" , Boolean . TRUE ) ; if ( list . getCellRenderer ( ) == null ) { list . setCellRenderer ( ( ListCellRenderer ) ( UIManager . get ( "List.cellRenderer" ) ) ) ; } Color sbg = list . getSelectionBackground ( ) ; if ( sbg == null || sbg instanceof UIResource ) { list . setSelectionBackground ( UIManager . getColor ( "List.selectionBackground" ) ) ; } Color sfg = list . getSelectionForeground ( ) ; if ( sfg == null || sfg instanceof UIResource ) { list . setSelectionForeground ( UIManager . getColor ( "List.selectionForeground" ) ) ; } Long l = ( Long ) UIManager . get ( "List.timeFactor" ) ; timeFactor = ( l != null ) ? l . longValue ( ) : 1000L ; updateIsFileList ( ) ; }
initializes list properties such as font , foreground , and background , and adds the cellrendererpane . the font , foreground , and background properties are only set if their current value is either null or a uiresource , other properties are set if the current value is null .
