View Javadoc

1   /*
2    * @(#)$Id: Main.java 772 2009-10-19 19:12:26Z bpuype $
3    *
4    * Author       :   Ueli Kurmann, igesture@uelikurmann.ch
5    *                                                                    
6    * Purpose      :   The workbench main class.
7    *
8    * -----------------------------------------------------------------------
9    *
10   * Revision Information:
11   *
12   * Date             Who         Reason
13   *
14   * 23.03.2008       ukurmann    Initial Release
15   *
16   * -----------------------------------------------------------------------
17   *
18   * Copyright 1999-2009 ETH Zurich. All Rights Reserved.
19   *
20   * This software is the proprietary information of ETH Zurich.
21   * Use is subject to license terms.
22   * 
23   */
24  
25  
26  package org.ximtec.igesture.tool;
27  
28  import javax.swing.UIManager;
29  import javax.swing.UIManager.LookAndFeelInfo;
30  
31  import org.ximtec.igesture.tool.view.MainController;
32  
33  
34  /**
35   * The workbench main class.
36   * 
37   * @version 1.0, Mar 2008
38   * @author Ueli Kurmann, igesture@uelikurmann.ch
39   * @author Beat Signer, bsigner@vub.ac.be
40   */
41  public class Main {
42  
43     public static void main(String[] args) {
44        try {
45      	  /* see http://java.sun.com/docs/books/tutorial/uiswing/lookandfeel/nimbus.html" target="alexandria_uri">http://java.sun.com/docs/books/tutorial/uiswing/lookandfeel/nimbus.html */
46      	  for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
47      	        if ("Nimbus".equals(info.getName())) {
48      	            UIManager.setLookAndFeel(info.getClassName());
49      	            break;
50      	        }
51      	    }
52        }
53        catch (Exception e) {
54           try {
55              UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
56           }
57           catch (Exception e1) {
58              e1.printStackTrace();
59           }
60        }
61  
62        new MainController();
63     }
64  
65  }