Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GUI #9

Closed
wants to merge 13 commits into from
Closed
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
6 changes: 6 additions & 0 deletions .idea/jpa-buddy.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 0 additions & 22 deletions src/main/java/agh/ics/oop/HelloApplication.java

This file was deleted.

21 changes: 21 additions & 0 deletions src/main/java/agh/ics/oop/SimulationApp.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package agh.ics.oop;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;

import java.io.IOException;

public class SimulationApp extends Application {
@Override
public void start(Stage stage) throws IOException {
FXMLLoader loader = new FXMLLoader(getClass().getResource("/simulationSetup.fxml"));
Scene scene = new Scene(loader.load());
Image icon = new Image(getClass().getResourceAsStream("/logo.png"));
stage.getIcons().add(icon);
stage.setScene(scene);
stage.show();
}
}
9 changes: 9 additions & 0 deletions src/main/java/agh/ics/oop/World.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package agh.ics.oop;

import javafx.application.Application;

public class World {
public static void main(String[] args) {
Application.launch(SimulationApp.class, args);
}
}
Comment on lines +1 to +9
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the App should be launched from here by running World class

Loading