View Javadoc
1   /*
2    * DesktopApplication1.java
3    */
4   package net.sf.openv4j.swingui;
5   
6   import org.jdesktop.application.Application;
7   import org.jdesktop.application.SingleFrameApplication;
8   
9   /**
10   * The main class of the application.
11   */
12  public class DesktopApplication1 extends SingleFrameApplication {
13      /**
14       * A convenient static getter for the application instance.
15       *
16       * @return the instance of DesktopApplication1
17       */
18      public static DesktopApplication1 getApplication() {
19          return Application.getInstance(DesktopApplication1.class);
20      }
21  
22      /**
23       * Main method launching the application.
24       *
25       * @param args DOCUMENT ME!
26       */
27      public static void main(String[] args) {
28          launch(DesktopApplication1.class, args);
29      }
30  
31      /**
32       * This method is to initialize the specified window by injecting resources. Windows shown in our application come fully initialized from the GUI builder, so this additional configuration is not needed.
33       *
34       * @param root DOCUMENT ME!
35       */
36      @Override
37      protected void configureWindow(java.awt.Window root) {
38      }
39  
40      /**
41       * At startup create and show the main frame of the application.
42       */
43      @Override
44      protected void startup() {
45          show(new DesktopApplication1View(this));
46      }
47  }