Skip to content

Commit

Permalink
Updated all main java files
Browse files Browse the repository at this point in the history
Fixed google checkstyle, missing javadoc, and minor warnings.
  • Loading branch information
roaraf committed May 27, 2026
1 parent 27bb541 commit 517518d
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 517518d

Please sign in to comment.