private void setLookAndFeel ( String lookAndFeelClassName ) { try { javax . swing . UIManager . setLookAndFeel ( lookAndFeelClassName ) ; } catch ( Throwable e ) { showMessage ( "The selected Look&Feel is not supported or not reachable through the classpath. Switching to system default..." ) ; try { lookAndFeelClassName = javax . swing . UIManager . getSystemLookAndFeelClassName ( ) ; javax . swing . UIManager . setLookAndFeel ( lookAndFeelClassName ) ; } catch ( Throwable e1 ) { Log . error ( "[MainForm]" , e1 ) ; } } }
set the selected look and feel