InternalScripting
Script Examples
The ScriptConsole supports any language that conforms to JSR 223.
This page shows some simple example of creating a popup window in a selection of the supported languages.
You can cut-and-paste these directly into the console (as standalone scripts):
ECMAScript / JavaScript (built in, Rhino engine)
importPackage(org.parosproxy.paros.view);
View.getSingleton().showMessageDialog("Hello world!");
ECMAScript / JavaScript (built in, Oracle Nashorn engine)
Java.type('org.parosproxy.paros.view.View').getSingleton().showMessageDialog('Hello world!');
Groovy
org.parosproxy.paros.view.View.getSingleton().showMessageDialog("Hello world!");
Jython
from org.parosproxy.paros.view import View
View.getSingleton().showMessageDialog("Hello world!")
Jruby
require 'java'
org.parosproxy.paros.view.View.getSingleton().showMessageDialog("Hello world!");
Links:
- Back: GUI programming
- Home: Internal Details
- Next: Dialog Windows