@ Override public void initialize ( ) { super . initialize ( ) ; // create synth style factory setStyleFactory ( new SynthStyleFactory ( ) { @ Override public SynthStyle getStyle ( JComponent c , Region r ) { SynthStyle style = getSeaGlassStyle ( c , r ) ; if ( ! ( style instanceof SeaGlassStyle ) ) { style = new SeaGlassStyleWrapper ( style ) ; } return style ; } } ) ; }
Called by UIManager when this look and feel is installed .