Class LogPanel

    • Constructor Detail

      • LogPanel

        public LogPanel()
    • Method Detail

      • clearStatus

        public void clearStatus()
        Clear the status area.
      • getStatusTable

        public JTable getStatusTable()
        The JTable used for the status messages (in case clients want to attach listeners etc.)
        Returns:
        the JTable used for the status messages.
      • logMessage

        public void logMessage​(String message)
        Sends the supplied message to the log area. These message will typically have the current timestamp prepended, and be viewable as a history.
        Specified by:
        logMessage in interface Logger
        Parameters:
        message - the log message
      • statusMessage

        public void statusMessage​(String message)
        Sends the supplied message to the status area. These messages are typically one-line status messages to inform the user of progress during processing (i.e. it doesn't matter if the user doesn't happen to look at each message). These messages have the following format: |
        Specified by:
        statusMessage in interface Logger
        Parameters:
        message - the status message.
      • setLoggingFontSize

        public void setLoggingFontSize​(int size)
        Set the size of the font used in the log message area. <= 0 will use the default for JTextArea.
        Parameters:
        size - the size of the font to use in the log message area
      • main

        public static void main​(String[] args)
        Main method to test this class.
        Parameters:
        args - any arguments (unused)