I think Yingying Chen wrote:

>        Value v=r.executeCommand("(batch animal.clp)");

In this line, you start the "animals" program running. The first thing
it does is prompt for input. executeCommand() is synchronous: i.e.,
this line doesn't return until the batch program is ended, which it
can't until you answer the questions!

>      r.executeCommand("printout t \"hello\" crlf"); 


This is an erroneous command, by the way; it's missing the
parentheses.

>      contentPane.add(textArea1, BorderLayout.CENTER);


Here, we display the panel where the question has been sent. But we
never get to this line of code -- the program is still back at the
"batch" comamnd.

So the direct answer is to display the textarea BEFORE you run the
program. Note that since you haven't provided an input router, input
is still going to come from the command line.


---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550         http://herzberg.ca.sandia.gov

--------------------------------------------------------------------
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]
--------------------------------------------------------------------

Reply via email to