Interactive mode and EventQueue

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Interactive mode and EventQueue

Sascha Ledinsky

I'd like to use BeanShell in interactive mode to aid debugging my
application. Since it's a Swing application, the BeanShell code should
be executed on the AWT's event-dispatching-thread.
I've quickly hacked something that reads from and uses
EventQueue.invokeAndWait( [...] interpreter.eval(line) [...]) - which
works well, but I'd rather like to use the JConsole. Is there some way
to tell the interpreter to execute commands on the EventQueue, or is
there some other way to accomplish this?

Thank you very much,
best regards
-Sascha Ledinsky

Telefonate ohne weitere Kosten vom PC zum PC:

This email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
Beanshell-users mailing list
[hidden email]