}
// check whether the user is allowed to finish by hitting a button
if (finishOnInput) {
// action panel
ActionPanelListener myListener = new ActionPanelListener() {
public void actionTriggered(ActionPanel source, Object actionValue) {
if (getFinishExecutionLock()) {
doCleanup();
finishExecution();
}