01: /*
02: * ShellApp.java
03: */
04:
05: package applicationpackage;
06:
07: import org.jdesktop.application.Application;
08: import org.jdesktop.application.SingleFrameApplication;
09:
10: /**
11: * The main class of the application.
12: */
13: public class ShellApp extends SingleFrameApplication {
14:
15: /**
16: * At startup create and show the main frame of the application.
17: */
18: @Override
19: protected void startup() {
20: show(new ShellView(this ));
21: }
22:
23: /**
24: * This method is to initialize the specified window by injecting resources.
25: * Windows shown in our application come fully initialized from the GUI
26: * builder, so this additional configuration is not needed.
27: */
28: @Override
29: protected void configureWindow(java.awt.Window root) {
30: }
31:
32: /**
33: * A convenient static getter for the application instance.
34: * @return the instance of ShellApp
35: */
36: public static ShellApp getApplication() {
37: return Application.getInstance(ShellApp.class);
38: }
39:
40: /**
41: * Main method launching the application.
42: */
43: public static void main(String[] args) {
44: launch(ShellApp.class, args);
45: }
46: }
|