Edit this file and then press "Reload" on the dialog to see the results The functions you can call are: run(command) - runs another program msgBox(text) - shows a message box reload - reloads the dialog close - closes the dialog setFocus(name) - sets focus to the control with the given name getText(name) - retrieves the text from a control You can also define your own methods inside this file that you can call This window and its behaviour are defined in Dialog.xml setFocus("edit"); msgBox("You typed " # getText("edit")); close(); msgBox("You cancelled the dialog!"); close(); // retrieve the file name from the Java object // then call the Java method "run" run("notepad " # FileName);