use of jgnash.ui.components.SortedListModel in project jgnash by ccavanaugh.
the class BudgetManagerDialog method buildBudgetModel.
private void buildBudgetModel() {
final SortedListModel<BudgetObject> model = new SortedListModel<>();
final Engine e = EngineFactory.getEngine(EngineFactory.DEFAULT);
Objects.requireNonNull(e);
for (Budget budget : e.getBudgetList()) {
model.addElement(new BudgetObject(budget));
}
EventQueue.invokeLater(() -> budgetList.setModel(model));
}
Aggregations