Class MDIApplicationTutorial

  • All Implemented Interfaces:
    Application

    public class MDIApplicationTutorial
    extends MDIApplication
    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.

    Version:
    $Id$
    Author:
    Steve Neuendorffer
    • Constructor Detail

      • MDIApplicationTutorial

        public MDIApplicationTutorial​(DesktopContext context)
    • Method Detail

      • main

        public static void main​(java.lang.String[] argv)
        Construct a new instance of the Tutorial, running in a new application context.
      • initializeApp

        public void initializeApp()
        Initialize the application.
      • initializeMenuBar

        public void initializeMenuBar​(javax.swing.JMenuBar menuBar)
        Initialize the menu bar
      • initializeToolBar

        public void initializeToolBar​(javax.swing.JToolBar tb)
        Initialize the given toolbar. Image icons will be obtained from the ApplicationResources object and added to the actions. Note that the image icons are not added to the actions -- if we did that, the icons would appear in the menus, which I suppose is a neat trick but completely useless.