/[svn]/jsampler/trunk/src/org/jsampler/JSampler.java
ViewVC logotype

Diff of /jsampler/trunk/src/org/jsampler/JSampler.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 787 by iliev, Mon Oct 10 16:03:12 2005 UTC revision 1285 by iliev, Fri Aug 10 19:55:03 2007 UTC
# Line 1  Line 1 
1  /*  /*
2   *   JSampler - a java front-end for LinuxSampler   *   JSampler - a java front-end for LinuxSampler
3   *   *
4   *   Copyright (C) 2005 Grigor Kirilov Iliev   *   Copyright (C) 2005-2007 Grigor Iliev <grigor@grigoriliev.com>
5   *   *
6   *   This file is part of JSampler.   *   This file is part of JSampler.
7   *   *
# Line 22  Line 22 
22    
23  package org.jsampler;  package org.jsampler;
24    
25  import java.awt.Frame;  import org.jsampler.view.JSViews;
   
 import org.jsampler.view.classic.ProgressDlg;  
26    
27  import static org.jsampler.JSI18n.i18n;  import static org.jsampler.JSI18n.i18n;
28    
   
29  /**  /**
30   *   * The main class of the application.
31   * @author  Grigor Iliev   * @author  Grigor Iliev
32   */   */
33  public class JSampler {  public class JSampler {
34            /** The application name. */
35          public final static String NAME = "JSampler";          public final static String NAME = "JSampler";
36          public final static String VERSION = "0.01a";          
37            /** The application version. */
38            public final static String VERSION = "0.6a";
39                    
40                    
41            /**
42             * The entry point of the application.
43             * @param args The command line arguments.
44             * @see CC#cleanExit
45             */
46          public static void          public static void
47          main(String[] args) {          main(String[] args) {
48                  CC.initJSampler();                  CC.initJSampler();
49                                    initGUI();
                 javax.swing.SwingUtilities.invokeLater(new Runnable() {  
                         public void  
                         run() { initGUI(); }  
                 });  
50          }          }
51                    
52          private static void          private static void
53          initGUI() {          initGUI() {
54                  String view = Prefs.getView();                  JSViews.parseManifest();
55                                    JSViews.setView(JSViews.getDefaultView());
                 if(view.equals("classic")) {  
                         CC.setMainFrame(new org.jsampler.view.classic.MainFrame());  
                         CC.setProgressIndicator(new ProgressDlg(CC.getMainFrame()));  
                 } else {  
                         HF.showErrorMessage(i18n.getError("unknownError"), (Frame)null);  
                         CC.cleanExit(-1);  
                         return;  
                 }  
                   
                 CC.getMainFrame().setVisible(true);  
56                                    
57                  CC.initSamplerModel();                  javax.swing.SwingUtilities.invokeLater(new Runnable() {
58                            public void
59                            run() {
60                                    CC.checkJSamplerHome();
61                                    CC.loadOrchestras();
62                                    CC.reconnect();
63                            }
64                    });
65          }          }
66  }  }

Legend:
Removed from v.787  
changed lines
  Added in v.1285

  ViewVC Help
Powered by ViewVC