private void defineLists ( UIDefaults d ) { String p = "List" ; d . put ( p + ".contentMargins" , new InsetsUIResource ( 0 , 0 , 0 , 0 ) ) ; d . put ( p + ".opaque" , Boolean . TRUE ) ; d . put ( p + ".background" , d . get ( "seaGlassLightBackground" ) ) ; d . put ( p + ".dropLineColor" , d . get ( "seaGlassFocus" ) ) ; d . put ( p + ".rendererUseListColors" , Boolean . TRUE ) ; d . put ( p + ".rendererUseUIBorder" , Boolean . TRUE ) ; d . put ( p + ".cellNoFocusBorder" , new BorderUIResource ( BorderFactory . createEmptyBorder ( 2 , 5 , 2 , 5 ) ) ) ; d . put ( p + ".focusCellHighlightBorder" , new BorderUIResource ( new PainterBorder ( "Tree:TreeCell[Enabled+Focused].backgroundPainter" , new Insets ( 2 , 5 , 2 , 5 ) ) ) ) ; // TODO Why doesn't ColorUIResource work here? d . put ( p + "[Selected].textForeground" , Color . WHITE ) ; d . put ( p + "[Selected].textBackground" , d . get ( "seaGlassSelection" ) ) ; d . put ( p + "[Disabled+Selected].textBackground" , Color . WHITE ) ; d . put ( p + "[Disabled].textForeground" , d . get ( "seaGlassDisabledText" ) ) ; p = "List:\"List.cellRenderer\"" ; d . put ( p + ".contentMargins" , new InsetsUIResource ( 0 , 0 , 0 , 0 ) ) ; d . put ( p + ".opaque" , Boolean . TRUE ) ; d . put ( p + "[Disabled].textForeground" , d . get ( "seaGlassDisabledText" ) ) ; d . put ( p + "[Disabled].background" , d . get ( "seaGlassSelectionBackground" ) ) ; }
Initialize the list settings .