use of jgnash.time.Period in project jgnash by ccavanaugh.
the class BudgetGoalDialog method updatePeriod.
private void updatePeriod() {
Period period = (Period) budgetPeriodCombo.getSelectedItem();
getBudgetGoal().setBudgetPeriod(period);
model.updateDescriptors(getDescriptors());
int max = getDescriptors().size();
startRowSpinner.setModel(new SpinnerNumberModel(1, 1, max, 1));
endRowSpinner.setModel(new SpinnerNumberModel(max, 1, max, 1));
}
Aggregations