File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "InputRouters" Watch "InputRouters" New topic


assia assiatoune

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


[ July 27, 2004: Message edited by: Lasse Koskela ]
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24195

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]
I agree. Here's the link:
subject: InputRouters
It's not a secret anymore!