|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.validation.tutorial.util.TutorialApplication
public abstract class TutorialApplication
A base class for tutorial applications. It provides a light version of the startup behavior from the JSR 296 "Swing Application Framework".
Constructor Summary | |
---|---|
protected |
TutorialApplication()
|
Method Summary | |
---|---|
protected JFrame |
createFrame(String title)
|
protected void |
initializeLookAndFeel()
|
static void |
launch(Class<? extends TutorialApplication> appClass,
String... args)
Instantiates the given TutorialApplication class, then invokes #startup with the given arguments. |
protected void |
locateOnOpticalScreenCenter(Component component)
Locates the given component on the screen's center. |
protected void |
packAndShowOnScreenCenter(JFrame frame)
|
protected abstract void |
startup(String[] args)
Starts this application when the application is launched. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected TutorialApplication()
Method Detail |
---|
public static void launch(Class<? extends TutorialApplication> appClass, String... args)
#startup
with the given arguments. Typically this method
is called from an application's #main method.
appClass
- the class of the application to launchargs
- optional launch arguments, often the main method's arguments.protected abstract void startup(String[] args)
Called by the static launch
method.
args
- optional launch arguments, often the main method's arguments.launch(Class, String[])
protected void initializeLookAndFeel()
protected JFrame createFrame(String title)
protected final void packAndShowOnScreenCenter(JFrame frame)
protected final void locateOnOpticalScreenCenter(Component component)
component
- the component to be centered
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |