Skip to content

Updated all main java files #69

Merged
merged 1 commit into from
May 27, 2026
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 19 additions & 13 deletions millions/src/main/java/no/ntnu/gruppe53/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,34 @@

/**
* Represents the main app of the application.
*
* <p>Sets up necessary components and shows the first view
* of the application: {@link StartView}.</p>
*/
public class App extends Application {
@Override
public void start(Stage stage) {
ViewController vm = new ViewController(stage);
@Override
public void start(Stage stage) {
ViewController vm = new ViewController(stage);

StartView startView = new StartView(vm);
StartView startView = new StartView(vm);

new StartViewController(startView, vm);
new StartViewController(startView, vm);


vm.addView("start", startView);
vm.addView("start", startView);

vm.switchView("start");
vm.switchView("start");

stage.setTitle("Millions - the Stock Game");
stage.show();
}
stage.setTitle("Millions - the Stock Game");
stage.show();
}

public static void main(String[] args) {
launch();
}
/**
* Launches the program.
*
* @param args arguments
*/
static void main(String[] args) {
launch();
}
}
Loading