|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.gui.tutorial.AbstractApplication
diva.gui.tutorial.MDIApplication
diva.gui.tutorial.MDIApplicationTutorial
public class MDIApplicationTutorial
A simple MDI text editor. This application uses the MDIApplication base class to provide a separate internal frame associated with each document. This class is similar in many ways to the ApplicationTutorial. The code in the initializeApp(), initializeMenuBar(), and initializeToolBar() methods is the same in both.
Note that there appears to be a bug in jdk1.2 with the keyboard handling in JEditorPane. Maximizing one of the internal frames loses the event hooks that the JEditorPane uses for keyboard input. This is fixed in jdk1.3.
Constructor Summary | |
---|---|
MDIApplicationTutorial(DesktopContext context)
|
Method Summary | |
---|---|
View |
createView(Document d)
Create a view on the given document. |
java.lang.String |
getTitle()
Get the title of this application |
void |
initializeApp()
Initialize the application. |
void |
initializeMenuBar(javax.swing.JMenuBar menuBar)
Initialize the menu bar |
void |
initializeToolBar(javax.swing.JToolBar tb)
Initialize the given toolbar. |
static void |
main(java.lang.String[] argv)
Construct a new instance of the Tutorial, running in a new application context. |
Methods inherited from class diva.gui.tutorial.MDIApplication |
---|
addView, getMDIContext, getView, removeView, setCurrentView |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MDIApplicationTutorial(DesktopContext context)
Method Detail |
---|
public static void main(java.lang.String[] argv)
public View createView(Document d)
createView
in interface Application
createView
in class MDIApplication
public java.lang.String getTitle()
getTitle
in interface Application
getTitle
in class AbstractApplication
public void initializeApp()
public void initializeMenuBar(javax.swing.JMenuBar menuBar)
public void initializeToolBar(javax.swing.JToolBar tb)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |