This depends on what output you want to place into the JTextArea:
 
If you want to put a value/variable holding a string into it, you can pretty 
much translate directly from java like so:
 
myJTextArea.append( myStringVariable );
 
would then become:
 
(?myJTextArea append ?myStringVariable)
 
However, if you want all of Jess' output (or the output from a particular 
router, for example) to go into a JTextArea, then I suggest you look at the 
ConsolePanel.java class in the jess package for an example (it uses the 
TextArea class but it should get you started.)
 
Also, Jess In Action has some examples of both of these.
 
Good luck!
 
alan
__________________
Bleib immer locker

________________________________

From: [EMAIL PROTECTED] on behalf of Pedro Pinheiro
Sent: Mon 6/6/2005 2:42 AM
To: jess-users@sandia.gov
Subject: JESS: Put a jess output into JTextArea



I have two classes. One for the jess code and other with a java swing
GUI. I want to put the jess output (results) into JTextArea. How can i
do that?

Thanks!!

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



<<winmail.dat>>

Reply via email to