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, 2006 Grigor Kirilov Iliev |
5 |
* |
* |
6 |
* This file is part of JSampler. |
* This file is part of JSampler. |
7 |
* |
* |
24 |
|
|
25 |
import java.awt.Frame; |
import java.awt.Frame; |
26 |
|
|
27 |
import org.jsampler.view.classic.ProgressDlg; |
import org.jsampler.view.JSViews; |
28 |
|
|
29 |
import static org.jsampler.JSI18n.i18n; |
import static org.jsampler.JSI18n.i18n; |
30 |
|
|
31 |
|
|
32 |
/** |
/** |
33 |
* |
* The main class of the application. |
34 |
* @author Grigor Iliev |
* @author Grigor Iliev |
35 |
*/ |
*/ |
36 |
public class JSampler { |
public class JSampler { |
37 |
|
/** The application name. */ |
38 |
public final static String NAME = "JSampler"; |
public final static String NAME = "JSampler"; |
39 |
public final static String VERSION = "0.02a"; |
|
40 |
|
/** The application version. */ |
41 |
|
public final static String VERSION = "0.03a"; |
42 |
|
|
43 |
|
|
44 |
|
/** |
45 |
|
* The entry point of the application. |
46 |
|
* @param args The command line arguments. |
47 |
|
* @see CC#cleanExit |
48 |
|
*/ |
49 |
public static void |
public static void |
50 |
main(String[] args) { |
main(String[] args) { |
51 |
CC.initJSampler(); |
CC.initJSampler(); |
58 |
|
|
59 |
private static void |
private static void |
60 |
initGUI() { |
initGUI() { |
61 |
String view = Prefs.getView(); |
JSViews.parseManifest(); |
62 |
|
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); |
|
63 |
|
|
64 |
CC.initSamplerModel(); |
CC.reconnect(); |
65 |
} |
} |
66 |
} |
} |