question: 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 ( ) ; }
target:  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.