• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

VIEW JESS result in textArea

Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello es anyone of you knows how to get the result generated by jess and view it directly on a textArea
I tried too much stuff and it did not work (I'm stuck)

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
Rete engine = new Rete();

try {



engine.executeCommand("(assert (fait mo ))");
TextAreaWriter taw = new TextAreaWriter(textArea1);
engine.addOutputRouter("t", taw);

engine.addOutputRouter("WSTDOUT", taw);

engine.addOutputRouter("WSTDERR", taw);


catch (JessException je) {
System.out.println("2:" + je.getMessage());

    Bookmark Topic Watch Topic
  • New Topic