4,10 → 4,10 |
* Coded by: Group 5, software practice summer 2003 |
* University of Bielefeld, Germany |
* |
* @version $Revision: 1.21 $ |
* @version $Revision: 1.22 $ |
* |
* Last modification: $Date: 2003/07/20 19:48:10 $ |
* $Id: LogPanel.java,v 1.21 2003/07/20 19:48:10 ioklasse Exp $ |
* Last modification: $Date: 2003/07/21 18:23:02 $ |
* $Id: LogPanel.java,v 1.22 2003/07/21 18:23:02 smcsporr Exp $ |
*/ |
|
package src.gui; |
96,11 → 96,16 |
} |
|
/** |
* The log method writes text messages to the log panel. |
* |
* @param type: The type of the message, @see src.gui.LogInterface. |
* @param message: A <code>String</code> containing the text of the message. |
*/ |
* Displays a text message of a specified type (info, error, warning) in the |
* logging area. |
* |
* @param i The type of the message as defined in src.gui.LogInterface. |
* 0 or src.gui.LogInterface.TYPE_INFO -> info message (black) |
* 1 or src.gui.LogInterface.TYPE_WARNING -> warning message (orange) |
* 2 or src.gui.LogInterface.TYPE_ERROR -> error message (red) |
* |
* @param message The text message to display in the log area. |
*/ |
public void log(int type, String message) { |
|
Document doc = text.getDocument(); |