Class ViewJFrameMessageGraph

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class ViewJFrameMessageGraph extends JFrame implements ActionListener
This class produces a message frame where user data and program can be displayed. The frame can be resize and a scroll pane is used where scroll bars are displayed as needed. This frame also gives the user the ability to edit and save the data as needed to a text file.
Version:
0.1 Oct 24, 1998
Author:
Matthew J. McAuliffe, Ph.D.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Use serialVersionUID for interoperability.
      See Also:
    • debugArea

      private JTextArea debugArea
      DOCUMENT ME!
    • debugSPane

      private JScrollPane debugSPane
      DOCUMENT ME!
    • font12

      private Font font12
      DOCUMENT ME!
    • font12B

      private Font font12B
      DOCUMENT ME!
    • frameInsets

      private Insets frameInsets
      DOCUMENT ME!
    • tBar

      private JToolBar tBar
      DOCUMENT ME!
  • Constructor Details

    • ViewJFrameMessageGraph

      public ViewJFrameMessageGraph(String title)
      Constructor.
      Parameters:
      title - title of dialog frame
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Closes dialog box when the OK button is pressed.
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      event - Event that triggers this function
    • append

      public void append(String appMessage)
      Appends the text area with the message.
      Parameters:
      appMessage - The message to append.
    • clear

      public void clear(int mode)
      Clears the text area.
      Parameters:
      mode - DATA, LOG, DEBUG
    • setMessage

      public void setMessage(String message)
      Sets the text area to the message, erasing what was there earlier.
      Parameters:
      message - message
    • buildMenu

      private void buildMenu()
      Creates the needed menus.
    • buildToolBar

      private void buildToolBar()
      Builds the needed toolbar.
    • init

      private void init(String title)
      Initializes the dialog box to a certain size and adds the components.
      Parameters:
      title - title of the dialog box