Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
idatt1002_2023_9
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Kluge Svendsrud
idatt1002_2023_9
Commits
120ee303
Commit
120ee303
authored
2 years ago
by
Harry Linrui XU
Browse files
Options
Downloads
Patches
Plain Diff
Created tableview and columns for expense overview
parent
cf6d388f
No related branches found
No related tags found
1 merge request
!6
Merging the frontend baseline to get up to date with the progress
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/no/ntnu/idatt1002/demo/view/SceneController.java
+24
-0
24 additions, 0 deletions
...ain/java/no/ntnu/idatt1002/demo/view/SceneController.java
with
24 additions
and
0 deletions
src/main/java/no/ntnu/idatt1002/demo/view/SceneController.java
+
24
−
0
View file @
120ee303
...
...
@@ -3,11 +3,18 @@ package no.ntnu.idatt1002.demo.view;
import
java.io.IOException
;
import
javafx.event.ActionEvent
;
import
javafx.fxml.FXML
;
import
javafx.fxml.FXMLLoader
;
import
javafx.scene.Node
;
import
javafx.scene.Parent
;
import
javafx.scene.Scene
;
import
javafx.scene.control.Tab
;
import
javafx.scene.control.TableColumn
;
import
javafx.scene.control.TableView
;
import
javafx.stage.Stage
;
import
jdk.jfr.Category
;
import
no.ntnu.idatt1002.demo.data.Expense
;
import
no.ntnu.idatt1002.demo.data.ExpenseCategory
;
public
class
SceneController
{
...
...
@@ -15,6 +22,23 @@ public class SceneController {
private
Scene
scene
;
private
Parent
root
;
@FXML
private
TableView
<
Expense
>
expenses
;
@FXML
private
TableColumn
<
Expense
,
String
>
date
;
@FXML
private
TableColumn
<
Expense
,
Double
>
amount
;
@FXML
private
TableColumn
<
Expense
,
Double
>
recurring
;
@FXML
private
TableColumn
<
Expense
,
ExpenseCategory
>
category
;
//ouble amount, boolean recurring, ExpenseCategory category, String date) {
// super(amount, recurring, date);
public
void
switchStartMenu
(
ActionEvent
event
)
throws
IOException
{
FXMLLoader
loader
=
new
FXMLLoader
(
getClass
().
getResource
(
"/view/FirstMenu.fxml"
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment