JXMLPad - Tutorial
Invoke an XMLPad editor from a button in a Lambda application
// Define a button for Lambda config file
JButton button = new JButton( "Editor Config" );
button.addActionListener(
new ActionListener() {
public void actionPerformed(
ActionEvent e ) {
// Invoke
an external editor and edit the config.xml file
SingleDocumentEditor.showEditor(
"/home/com/lamba/config.xml", false
);
}
}
);
// Define a button for Lambda config files. There's
several file
// that must be edited at once
JButton button2 = new JButton( "Editor Configs" );
button.addActionListener(
new ActionListener() {
public void actionPerformed(
ActionEvent e ) {
// Invoke
an external editor and edit the config.xml file
MultipleDocumentEditor.showEditor(
new File( "/home/com/lamba" ), null
);
}
}
);