My approach was going to be that the RHS of my rules would actually create the string content; I guess the easiest approach is to have the string content be part of a shadow fact, use listeners to update the GUI when the shadow fact changes, etc. Thanks.

On Jul 16, 2006, at 6:01 PM, friedman_hill ernest j wrote:

I think mdean77 wrote:


However, I do not see how this relates to I/O Routers.  And my next
stretch is into the TextAreaWriters, which don't really exist in SWT,
but this must be simpler than I am making it.

TextAreaWriter and its new Swing cousin are both very simple classes
that implement Writer by taking the calls to "write()" and turning
them into an "appendText" sort of call on a text component. Writing
something similar for an SWT Text widget would be a very quick
exercise.

But the point of TAW and friends, and of mucking with I/O routers in
general, is that you've already got a command-line program, and you
want to graft it onto a GUI without much work. If you're writing
things from scratch, then I wouldn't bother. Build your strings, talk
to your Text widgets, and just generally write the code the way you'd
write it in Java. In fact, it's perfectly fine to write as much of it
in Java as makes you comfortable, leaving just the rules in Jess.



---------------------------------------------------------
Ernest Friedman-Hill
Advanced Software 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 owner-jess- [EMAIL PROTECTED]
--------------------------------------------------------------------

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