public void componentShown(final ComponentEvent e) {
status = JOptionPane.DEFAULT_OPTION;
}
});
final String key = "styledialog";
AFreeplaneAction okAction = new AFreeplaneAction(key + ".ok") {
public void actionPerformed(final ActionEvent e) {
status = JOptionPane.OK_OPTION;
closeDialog();
}
};
controller.addAction(okAction);
AFreeplaneAction cancelAction = new AFreeplaneAction(key + ".cancel") {
public void actionPerformed(final ActionEvent e) {
status = JOptionPane.CANCEL_OPTION;
closeDialog();
}
};
controller.addAction(cancelAction);
AFreeplaneAction tryToCloseAction = new AFreeplaneAction("QuitAction") {
public void actionPerformed(final ActionEvent e) {
tryToCloseDialog();
}
};
controller.addAction(tryToCloseAction);