-
Notifications
You must be signed in to change notification settings - Fork 0
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
Closed
GUI #9
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
0e04aff
Needed files adn classes added
Gabriela-Dumanska 7ad2d95
Fixed a bug and incorrect code
karmatys8 c1f1701
Added the first scene-setup of the Simulation
Gabriela-Dumanska 17ccf85
Added AbstractWorldMap
karmatys8 083e15b
Merge branch 'main' into minor-fixes
karmatys8 35684d9
Made changes necessary for merge.
karmatys8 9759a25
Merge pull request #10 from karmatys8/minor-fixes
Gabriela-Dumanska 53534cf
Needed files adn classes added
Gabriela-Dumanska 4c431a4
Added the first scene-setup of the Simulation
Gabriela-Dumanska 3c9a7b6
Setup file
Gabriela-Dumanska 954b349
Git wants me to commit these files to rebase main
Gabriela-Dumanska 918c716
Change validation to happen after clicking the button
Gabriela-Dumanska 7705102
Merge branch 'GUI' of https://github.com/karmatys8/PO_2023_projekt in…
Gabriela-Dumanska File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -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(); | ||
} | ||
} |
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 |
---|---|---|
@@ -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); | ||
} | ||
} | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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