aspose file tools*
The moose likes Other Java Products and Servers and the fly likes InputRouters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "InputRouters" Watch "InputRouters" New topic
Author

InputRouters

assia assiatoune
Greenhorn

Joined: Jul 11, 2004
Posts: 16
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

Joined: Jul 08, 2003
Posts: 24187
    
  34

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.


[Jess in Action][AskingGoodQuestions]
 
Consider Paul's rocket mass heater.
 
subject: InputRouters