public final void initializeLookAndFeels ( ) { // if in classpath thry to load JGoodies Plastic Look & Feel try { LookAndFeelInfo [ ] lnfs = UIManager . getInstalledLookAndFeels ( ) ; boolean found = false ; for ( int i = 0 ; i < lnfs . length ; i ++ ) { if ( lnfs [ i ] . getName ( ) . equals ( "JGoodies Plastic 3D" ) ) { found = true ; } } if ( ! found ) { UIManager . installLookAndFeel ( "JGoodies Plastic 3D" , "com.jgoodies.looks.plastic.Plastic3DLookAndFeel" ) ; } UIManager . setLookAndFeel ( "com.jgoodies.looks.plastic.Plastic3DLookAndFeel" ) ; } catch ( Throwable t ) { try { UIManager . setLookAndFeel ( UIManager . getSystemLookAndFeelClassName ( ) ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } } }
Installs the JGoodies Look & Feels if available in classpath .