public abstract class Application
extends java.lang.Object
Application
class describes a complete MVC application.
The class takes care of constructing the main application frame and passing
it on to subclasses. To create a new MVC application one must therefore
extend the Application
class and implement the
start(JFrame)
method:
public final class MyApp extends Application { protected void start(final JFrame frame) { frame.getContentPane().add(...); } public static void main(final String[] args) { new MyApp(); } }
Constructor and Description |
---|
Application()
Initialize a new
Application instance. |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
start(javax.swing.JFrame frame)
Start the
Application . |
public Application()
Application
instance.protected abstract void start(javax.swing.JFrame frame)
Application
.
This method is called as part of the Application
initialization.
frame
- The main frame of the Application
.