private void setLookAndFeel(final String laf) {
        try {
            final int lafNum = Integer.parseInt(laf);
            switch(lafNum){
                default:
                case -2: //Nimbus
                	boolean isLAFFound = false;
                    for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                        if ("Nimbus".equals(info.getName())) {
                        	javax.swing.UIManager.setLookAndFeel(info.getClassName());
                        	isLAFFound = true;
                            break;
                        }
                    }
                	if( isLAFFound ){
                		break;
                	}
                	
                case 0: //Java LAF
                    javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getCrossPlatformLookAndFeelClassName());
                    break;

                case 1: //System LAF
                    javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName());
                    break;

                case 2:
                    javax.swing.UIManager.setLookAndFeel( recursosConfig.getString("LAFClass") );
                    break;
            }
        } catch (Exception e) {
            System.err.println("Error setting Look and Feel: " + e.getMessage());
            try{
                javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getCrossPlatformLookAndFeelClassName());
            }catch(Exception e2){
                System.err.println("Error setting Look and Feel (1st and only retry): " + e2.getMessage());
            }
        }

        JFrame.setDefaultLookAndFeelDecorated(true);
    }