/*
 *  PHEX - The pure-java Gnutella-servent.
 *  Copyright (C) 2001 - 2005 Phex Development Group
 *  Copyright (C) 2001 - 2006 This file - Nimish
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 *
 */
package FunTooshLauncher;

import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

/**
 *
 * @author manu
 */
public class Main {
    
    private static final String LAF_THEME_FILE=System.getProperty("user.home")+"\\FunToosh\\FunToosh.laf";
    private static String FunTooshTheme;
    private static String themeName;
    private static String imagePath;
    private static String themeColor;
    
    /** Creates a new instance of Main */
    public Main() {
    }
    
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        String theme=null;
        try {
            // TODO code application logic here
            File file=new File(LAF_THEME_FILE);
            if(file.exists()) {
                DataInputStream dis=new DataInputStream(new FileInputStream(file));
                FunTooshTheme=dis.readUTF();
                themeName=dis.readUTF();
                imagePath=dis.readUTF();
                themeColor=dis.readUTF();
                dis.close();
                
                if(FunTooshTheme.contains("FunToosh Special Theme")) {
                    launchFunTooshSpecialTheme();
                } else {
                    launchFunTooshCustomTheme();
                }
            } else {
                Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceAquaTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"20.jpg\" -jar FunToosh.jar");
            }
            
        } catch (Exception ex) {
            ex.printStackTrace();
            try {
                Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceAquaTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"20.jpg\" -jar FunToosh.jar");
            } catch (Exception ex1) {
                ex.printStackTrace();
            }
        }
    }
    
    private static void launchFunTooshCustomTheme() throws IOException {
       Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.Substance"+themeColor+"Theme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\""+imagePath+"\" -jar FunToosh.jar");
    }
    
    private static void launchFunTooshSpecialTheme() throws IOException {
        if(themeName.equals("Roses")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceSunsetTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"25.jpg\" -jar FunToosh.jar");
        } else if(themeName.equals("Pink Doll")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceBarbyPinkTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"24.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("Snowy Winter")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceLightAquaTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"4.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("The Taj Mahal")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceSteelBlueTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"27.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("FunToosh(Default)")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceAquaTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"20.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("Japanese Doll")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceCharcoalTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"29.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("Great Wall of China")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstancePurpleTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"22.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("Animal Kingdom-Tiger")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceOrangeTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"7.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("Car Theme 1")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceEbonyTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"1.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("Car Theme 2")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceSunGlareTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"17.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("Car Theme 3")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceEbonyTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"18.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("Car Theme 4")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceEbonyTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"23.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("Car Theme 5")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceEbonyTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"28.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("Spooky Theme 1")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceEbonyTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"15.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("Spooky Theme 2")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceEbonyTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"16.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("Spooky Theme 3")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceEbonyTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"26.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("Noble Thoughts 1")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceLimeGreenTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"9.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("Noble Thoughts 2")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceRaspberryTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"10.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("Noble Thoughts 3")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceBarbyPinkTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"12.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("Military Aircrafts 1")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceEbonyTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"13.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("Military Aircrafts 2")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceEbonyTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"14.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("Dream Locations 1")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceBottleGreenTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"2.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("Dream Locations 2")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceDarkVioletTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"3.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("Dream Locations 3")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceBrownTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"5.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("Dream Locations 4")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceBottleGreenTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"6.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("Dream Locations 5")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceTerracottaTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"8.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("Dream Locations 6")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceSteelBlueTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"11.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("Dream Locations 7")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceAquaTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"19.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("Dream Locations 8")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceCharcoalTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"21.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("Dream Locations 9")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceRaspberryTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"30.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("Shakira Theme")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceSunsetTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"Shakira.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("Brad Pitt Theme")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceEbonyTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"BradPitt.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("Tom Cruise Theme")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceTerracottaTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"TomCruise.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("The Beatles Theme")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceEbonyTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"TheBeatles.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("Angelina Jolie Theme")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceSepiaTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"AngelinaJolie.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("Enrique Iglesias Theme")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceCharcoalTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"EnriqueIglesias.jpg\" -jar FunToosh.jar");
        }else if(themeName.equals("Leonardo Di Caprio Theme")) {
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceDarkVioletTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"LeonardoDiCaprio.jpg\" -jar FunToosh.jar");
        }else{
            Runtime.getRuntime().exec("java -Xms32m -Dswing.defaultlaf=org.jvnet.substance.SubstanceLookAndFeel -Dsubstancelaf.watermark.image.opacity=0.6 -Dsubstancelaf.watermark.tobleed -Dsubstancelaf.theme=org.jvnet.substance.theme.SubstanceAquaTheme -Dsubstancelaf.buttonShaper=org.jvnet.substance.shaperpack.button.RaceCarButtonShaper -Dsubstancelaf.watermark=org.jvnet.substance.watermark.SubstanceImageWatermark -Dsubstancelaf.watermark.image=\"20.jpg\" -jar FunToosh.jar");
        }
        
    }
    
}
