Skip to content

Commit

Permalink
Merge pull request #69 from IDATT2003-Gruppe-53/68-checkstyle-and-fin…
Browse files Browse the repository at this point in the history
…alizing

Updated all main java files
  • Loading branch information
roaraf authored May 27, 2026
2 parents 27bb541 + 517518d commit 0d6db74
Show file tree
Hide file tree
Showing 37 changed files with 4,016 additions and 3,798 deletions.
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

0 comments on commit 0d6db74

Please sign in to comment.