On Wed, May 31, 2000 at 10:28:49PM -0400, Mike Wilson wrote:
> I have embeded BeanShell in my app. I had hoped to instantiate a console
> from a menu item within my app, pass a reference to the my app, and allow
> the users to access the instance of the class that called Console.main. I
> can't figure out how to pass in a reference to the calling class though.
> This functionallity seems to be possible when instantiating an Interpreter.
> Any one know how to do this? I was thinking about downloading the source
> and exposing the Interpreter from the Console class if that was possible.
Generally you set up a console by creating an interepreter instance passing
it the console in the constructor...
console = new JConsole();
interpreter = new Interpreter( console );
So you can interact with the interpreter directly from your app.
Get latest updates about Open Source Projects, Conferences and News.