Search in sources :

Example 1 with AmortizeDialog

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"));
        }
    }
}
Also used : AmortizeDialog(jgnash.ui.account.AmortizeDialog) AmortizeObject(jgnash.engine.AmortizeObject)

Aggregations

AmortizeObject (jgnash.engine.AmortizeObject)1 AmortizeDialog (jgnash.ui.account.AmortizeDialog)1