net.sourceforge.nite.gui.util
Class MyLogHandler
java.lang.Object
java.util.logging.Handler
net.sourceforge.nite.gui.util.MyLogHandler
public class MyLogHandler
- extends java.util.logging.Handler
Utility class for maintaining a status bar through the logging API.
Allows visualisation of messages from loggers; you can use this in one of several ways:
- Request the panel on which the log messages are shown (and add panel to your interface)
- Request an JIngernalFrame that contains those same messages
- use 'createStatusFrame' to add this internal frame directly to a given JDesktopPane at a given location and size
- Author:
- Dennis Reidsma, UTwente
Methods inherited from class java.util.logging.Handler |
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, setEncoding, setErrorManager, setFilter, setFormatter, setLevel |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MyLogHandler
public MyLogHandler()
getPanel
public javax.swing.JComponent getPanel()
getInternalFrame
public javax.swing.JInternalFrame getInternalFrame()
createStatusFrame
public javax.swing.JInternalFrame createStatusFrame(javax.swing.JDesktopPane desktop,
int x,
int y,
int width,
int height)
close
public void close()
- Specified by:
close
in class java.util.logging.Handler
flush
public void flush()
- Specified by:
flush
in class java.util.logging.Handler
publish
public void publish(java.util.logging.LogRecord record)
- Specified by:
publish
in class java.util.logging.Handler