-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added FrontpageController, and test data
- Loading branch information
Showing
2 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
...papplication/src/main/java/ntnu/systemutvikling/team6/controller/FrontpageController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,29 @@ | ||
| package ntnu.systemutvikling.team6.controller; | ||
|
|
||
| import javafx.fxml.FXML; | ||
| import javafx.fxml.FXMLLoader; | ||
| import javafx.scene.Parent; | ||
| import javafx.scene.layout.FlowPane; | ||
|
|
||
| public class FrontpageController { | ||
|
|
||
| @FXML private FlowPane cardsContainer; | ||
|
|
||
| @FXML | ||
| public void initialize() { | ||
| try { | ||
|
|
||
| for (int i = 0; i < 6; i++) { | ||
|
|
||
| FXMLLoader loader = new FXMLLoader(getClass().getResource("/fxml/organizationCard.fxml")); | ||
|
|
||
| Parent card = loader.load(); | ||
|
|
||
| cardsContainer.getChildren().add(card); | ||
| } | ||
|
|
||
| } catch (Exception e) { | ||
| e.printStackTrace(); | ||
| } | ||
| } | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters