jwo.utils.gui
Class GUIHandler
java.lang.Object
java.util.logging.Handler
java.util.logging.StreamHandler
jwo.utils.gui.GUIHandler
- public class GUIHandler
- extends StreamHandler
Creates a frame containing logger output. This is updated
dynamically whenever a call to a logger that has registered
this handler is made.
- Version:
- 2.2, 23rd February, 2004.
- Author:
- Jo Wood
Constructor Summary |
GUIHandler()
Creates a GUI in which logger output is placed. |
Method Summary |
JFrame |
getGUI()
Retrieves the GUI used to report logging output. |
void |
publish(LogRecord record)
Publishes a LogRecord to a GUI. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GUIHandler
public GUIHandler()
- Creates a GUI in which logger output is placed.
publish
public void publish(LogRecord record)
- Publishes a LogRecord to a GUI. The logging request was made
initially to a Logger object, which initialized the LogRecord
and forwarded it here.
- Parameters:
record
- Description of the log event.
getGUI
public JFrame getGUI()
- Retrieves the GUI used to report logging output.
- Returns:
- Frame holding console output.
Copyright Jo Wood, 1996-2005, last modified, 11th March, 2005