info.jonclark.gui
Class GuiLogHandler
java.lang.Object
java.util.logging.Handler
info.jonclark.gui.GuiLogHandler
public class GuiLogHandler
- extends Handler
Directs Logger messages to model GUI dialog boxes.
- Author:
- Jonathan Clark
| Methods inherited from class java.util.logging.Handler |
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, setEncoding, setErrorManager, setFilter, setFormatter, setLevel |
GuiLogHandler
public GuiLogHandler(Component parent,
String title)
- Create a new
GuiLogHandler object. The average user
will want to set the level of this handler to Level.WARNING so that
the user doesn't have to deal with too many informational messages.
- Parameters:
parent - The parent component that will be used for displaying
model error dialogs.
close
public void close()
throws SecurityException
- Specified by:
close in class Handler
- Throws:
SecurityException
flush
public void flush()
- Specified by:
flush in class Handler
publish
public void publish(LogRecord record)
- Specified by:
publish in class Handler