Handle system messages.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@502 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-10-18 23:55:37 +00:00
parent 094c1f1ce6
commit 7844e4db85
@@ -1,5 +1,5 @@
//
// $Id: ChatPanel.java,v 1.6 2001/10/18 23:10:32 mdb Exp $
// $Id: ChatPanel.java,v 1.7 2001/10/18 23:55:37 mdb Exp $
package com.threerings.micasa.client;
@@ -196,6 +196,19 @@ public class ChatPanel
}
}
public void displaySystemMessage (String message)
{
// stick a newline on the message
message = message + "\n";
Document doc = _text.getDocument();
try {
doc.insertString(doc.getLength(), message, _errStyle);
} catch (BadLocationException ble) {
Log.warning("Unable to insert text!? [error=" + ble + "].");
}
}
protected void displayError (String message)
{
// stick a newline on the message