Class LogFileViewer

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

public class LogFileViewer extends JFrame
Simple file viewer for viewing log files.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      The Constant serialVersionUID.
      See Also:
    • logFile

      private File logFile
      The log file.
    • scrollPane

      private JScrollPane scrollPane
      The scroll pane.
    • textArea

      private JTextArea textArea
      The text area.
  • Constructor Details

    • LogFileViewer

      public LogFileViewer()
      Instantiates a new log file viewer.
      Throws:
      HeadlessException - the java.awt. headless exception
    • LogFileViewer

      public LogFileViewer(GraphicsConfiguration arg0)
      Instantiates a new log file viewer.
      Parameters:
      arg0 - the arg 0
    • LogFileViewer

      public LogFileViewer(String arg0)
      Instantiates a new log file viewer.
      Parameters:
      arg0 - the arg 0
      Throws:
      HeadlessException - the java.awt. headless exception
    • LogFileViewer

      public LogFileViewer(String arg0, GraphicsConfiguration arg1)
      Instantiates a new log file viewer.
      Parameters:
      arg0 - the arg 0
      arg1 - the arg 1
  • Method Details

    • init

      public void init(File file, Dimension d)
      Inits the.
      Parameters:
      file - the file
      d - the d
    • createMenus

      private void createMenus()
      Creates the menus.
    • loadFile

      private boolean loadFile()
      Load file.
      Returns:
      true, if successful
    • handleException

      protected void handleException(Exception e)
      Handle exception.
      Parameters:
      e - the e