Skip to content
Snippets Groups Projects
Commit 672d2783 authored by Harry Linrui XU's avatar Harry Linrui XU
Browse files

Made the show combox provide options to choose from - All, food or other

parent 9ba78953
Branches fix/navbar-type
No related tags found
10 merge requests!43Merging frontend-testing into master,!38"Made progressbar dynamic in accordance to spending. Added balance field....,!37Made the sub progress bars respond to changes in expense,!32Added input validation to add dialog boxes.,!30Redesigned scenes,!29Redesigned scenes,!28Redesigned scenes,!26Redesigned Main menu and expense/income windows,!24Merging frontend-testing with master,!23Merging frontend-testing and master
......@@ -73,6 +73,10 @@ public class ExpensesController {
@FXML
public void initialize() {
ObservableList<String> filter = FXCollections.observableArrayList("All", "Other", "Food");
show.setItems(filter);
show.setValue("All");
dateColumn.setCellValueFactory(new PropertyValueFactory<Expense, String>("date"));
amountColumn.setCellValueFactory(new PropertyValueFactory<Expense, Double>("amount"));
categoryColumn.setCellValueFactory(new PropertyValueFactory<Expense, ExpenseCategory>("category"));
......@@ -80,8 +84,7 @@ public class ExpensesController {
recurringColumn.setCellValueFactory(new PropertyValueFactory<Expense, Boolean>("recurring"));
expenseTableView.setItems(expenses);
ObservableList<String> filter = FXCollections.observableArrayList("All", "Other", "Food");
show.setItems(filter);
}
@FXML
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment