Olivier Dameron wrote:

Dear BSF developers,
  I used to execute a script through BSF by calling the
BSFManager::exec(...) function.
  The output of the script goes to System.out, and I would like to redirect
it so that it is written in the text pane where I write my scripts. It would
be something similar to the bsh's Console, but using BSF instead of the
interpreter.

Is there any way to set the default output ?
I don't see any BSFManager::setOut(PrintStream) nor any
BSFEngine::setOut(...), but maybe there is another solution ?


You could save a reference to the text-pane as a bean in the BSFRegistry and address that from your script.

Hope that helps,

---rony

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to