Skip to content

Commit 024e97c

Browse files
committed
Initial commit
0 parents  commit 024e97c

File tree

5 files changed

+33
-0
lines changed

5 files changed

+33
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
out/
2+
.idea/
3+
*.iml

README.md

Whitespace-only changes.

src/sample/Controller.java

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package sample;
2+
3+
public class Controller {
4+
}

src/sample/Main.java

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package sample;
2+
3+
import javafx.application.Application;
4+
import javafx.fxml.FXMLLoader;
5+
import javafx.scene.Parent;
6+
import javafx.scene.Scene;
7+
import javafx.stage.Stage;
8+
9+
public class Main extends Application {
10+
11+
public static void main(String[] args) {
12+
launch(args);
13+
}
14+
15+
@Override
16+
public void start(Stage primaryStage) throws Exception {
17+
Parent root = FXMLLoader.load(getClass().getResource("sample.fxml"));
18+
primaryStage.setTitle("Hello World");
19+
primaryStage.setScene(new Scene(root, 300, 275));
20+
primaryStage.show();
21+
}
22+
}

src/sample/sample.fxml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?import javafx.scene.layout.GridPane?>
2+
<GridPane xmlns:fx="http://javafx.com/fxml"
3+
fx:controller="sample.Controller" alignment="center" hgap="10" vgap="10">
4+
</GridPane>

0 commit comments

Comments
 (0)