jfc.setDialogTitle("Load script");
int returnVal = jfc.showOpenDialog(this);
if (returnVal == JFileChooser.APPROVE_OPTION) {
File file = jfc.getSelectedFile();
try {
Script script = new Script(file);
_manager.addScript(plugin, hook, script);
} catch (Exception e) {
JOptionPane.showMessageDialog(null, new String[] {"Error loading Script : ", e.getMessage()}, "Error", JOptionPane.ERROR_MESSAGE);
}
}