* @return JComponent, a panel holding the interface to set the properties.
*/
public JComponent createPropertyGUI(String prefix, Properties props,
Properties info) {
JComponent component = createEmbeddedPropertyGUI(prefix, props, info);
JButton doneButton = null, cancelButton = null;
JPanel buttons = new JPanel();
if (print) {
doneButton = new JButton("Print");
cancelButton = new JButton("Quit");
} else {
doneButton = new JButton("OK");
cancelButton = new JButton("Cancel");
}
doneButton.addActionListener(this);
doneButton.setActionCommand(doneCommand);
cancelButton.addActionListener(this);
cancelButton.setActionCommand(cancelCommand);
buttons.add(doneButton);
buttons.add(cancelButton);
component.add(buttons, BorderLayout.SOUTH);
component.validate();
return component;
}