public void actionPerformed(ActionEvent e) {
try {
PString pFnName = new PString("Name");
PFunction pFunction = new PFunction("New Function", 1, true, null);
ConfigResult props = ConfigManager.configure(new Property[] { pFnName,
pFunction }, "Register fuction", FunctionDialog.this,
ConfigMode.TEMPLATE_NOT_CHOOSABLE);
String name = (String) props.getValue(pFnName);
Function fn = (Function) props.getValue(pFunction);
interpreter.registerFunction(name, fn);
registeredFunctionsList.addItem(name);
} catch (ConfigException e1) {
e1.defaultHandleBehavior();