Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioRivis committed Mar 28, 2019
0 parents commit 024e97c
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
@@ -0,0 +1,3 @@
out/
.idea/
*.iml
Empty file added README.md
Empty file.
4 changes: 4 additions & 0 deletions src/sample/Controller.java
@@ -0,0 +1,4 @@
package sample;

public class Controller {
}
22 changes: 22 additions & 0 deletions src/sample/Main.java
@@ -0,0 +1,22 @@
package sample;

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

public class Main extends Application {

public static void main(String[] args) {
launch(args);
}

@Override
public void start(Stage primaryStage) throws Exception {
Parent root = FXMLLoader.load(getClass().getResource("sample.fxml"));
primaryStage.setTitle("Hello World");
primaryStage.setScene(new Scene(root, 300, 275));
primaryStage.show();
}
}
4 changes: 4 additions & 0 deletions src/sample/sample.fxml
@@ -0,0 +1,4 @@
<?import javafx.scene.layout.GridPane?>
<GridPane xmlns:fx="http://javafx.com/fxml"
fx:controller="sample.Controller" alignment="center" hgap="10" vgap="10">
</GridPane>

0 comments on commit 024e97c

Please sign in to comment.