title: Invoke Groovy script using Groovy UI button
body: <p>I'm currently building a UI with Groovy Swing builder and I want to call another script on button click. </p>
  
  <p>My code: </p>
  
  <pre><code>panel(alignmentX:0f) {
      flowLayout(alignment:FL.LEFT)
      button('Import KM', actionPerformed: {
      vars.dialogResult = 'Import KM'
      gshell.evaluate(new File("ImportKnowledgeModules.groovy")) 
  })
  </code></pre>
  
  <p>The new script is also in the same directory as the calling script. But nothing happens when I click the button 'Import KM'.</p>
  
  <p>What am I missing here?</p>