Hello,
I have an error in my program that causes my wimpy DOS window to overflow.
Since the DOS window will not let me scroll up to see the cause, I am trying
to output the error message to a textarea. I get all the normal output, but
the error message does not show up in the textarea. Here's my code:
import jess.*;
import java.io.*;
import java.awt.TextArea;
import jess.awt.*;
import java.awt.*;
public class RobotMain
{
public static void main(String[] argv) throws JessException
{
TextArea ta = new TextArea(20,80);
TextAreaWriter taw = new TextAreaWriter(ta);
Frame a = new Frame("Output");
a.add(ta);
a.show();
Rete r = new Rete();
r.addOutputRouter("WSTDOUT",taw);
r.addOutputRouter("WSTDERR",taw);
r.addOutputRouter("t",taw);
r.executeCommand("(batch robot.clp)");
r.runUntilHalt();
}
}
Thanks
Matt
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------