use of jgnash.ui.account.AmortizeDialog in project jgnash by ccavanaugh.
the class LiabilityRegisterPanel method amortizeAction.
/**
* Displays the Amortize dialog
*/
private void amortizeAction() {
AmortizeObject ao = account.getAmortizeObject();
AmortizeDialog d = new AmortizeDialog(ao);
d.setVisible(true);
if (d.getResult()) {
if (!engine.setAmortizeObject(account, d.getAmortizeObject())) {
StaticUIMethods.displayError(rb.getString("Message.Error.AmortizationSave"));
}
}
}
Aggregations