Skip to content

Instantly share code, notes, and snippets.

@brunoborges
Created May 13, 2014 19:04
Show Gist options
  • Save brunoborges/d56435215b8c58e40748 to your computer and use it in GitHub Desktop.
Save brunoborges/d56435215b8c58e40748 to your computer and use it in GitHub Desktop.
private void hackScriptEngine(FXMLLoader loader) {
try {
Field fse = loader.getClass().getDeclaredField("scriptEngine");
fse.setAccessible(true);
scriptEngine = (ScriptEngine) fse.get(loader);
} catch (IllegalAccessException | NoSuchFieldException | SecurityException ex) {
LOGGER.log(Level.SEVERE, null, ex);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment