Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

InputRouters

 
assia assiatoune
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello!
first, thanks for all your answers!
my question is about InputRouter!
I want to reroute the standard input directory to a textArea.
I used:


but the result was that I could not input text since the stanard output directory too.
how to do to reroute it to my taxtArea1?

thanks!


[ July 27, 2004: Message edited by: Lasse Koskela ]
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
TextReader works with a TextField for input, not a TextArea -- run the jess.Console program for an example of what it looks like. You use a TextArea for output, and a separate TextField for input.

In theory, you could write an adapter which took input from a TextArea (or JTextArea) -- but it's not something that TextReader can do.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic