teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

3

jdkバージョン追記

2020/04/19 02:07

投稿

Yuhara327
Yuhara327

スコア9

title CHANGED
File without changes
body CHANGED
@@ -89,4 +89,6 @@
89
89
  public class SampleController {
90
90
 
91
91
  }
92
- ```
92
+ ```
93
+
94
+ JavaSE 11を使用しております。

2

コントローラ追記

2020/04/19 02:06

投稿

Yuhara327
Yuhara327

スコア9

title CHANGED
File without changes
body CHANGED
@@ -81,4 +81,12 @@
81
81
  ```
82
82
  ![プロジェクトの内容です](37b4b353af897a0043edd590dbd958d9.png)
83
83
  なにかコードが書いてあるものはこれで全てです...
84
- application.cssは白紙でした
84
+ application.cssは白紙でした
85
+
86
+ ```SampleController
87
+ package application;
88
+
89
+ public class SampleController {
90
+
91
+ }
92
+ ```

1

コードの追記

2020/04/19 02:05

投稿

Yuhara327
Yuhara327

スコア9

title CHANGED
File without changes
body CHANGED
@@ -59,4 +59,26 @@
59
59
  at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195)
60
60
  at java.base/java.lang.Thread.run(Thread.java:834)
61
61
  Caused by: java.lang.NullPointerException: Location is required.
62
- ```
62
+ ```
63
+ ```Sample
64
+ <?xml version="1.0" encoding="UTF-8"?>
65
+
66
+ <?import javafx.scene.control.Label?>
67
+ <?import javafx.scene.layout.AnchorPane?>
68
+ <?import javafx.scene.text.Font?>
69
+
70
+
71
+ <AnchorPane prefHeight="400.0" prefWidth="400.0" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/11.0.1" fx:controller="application.SampleController">
72
+ <children>
73
+ <Label layoutY="100.0" prefHeight="200.0" prefWidth="400.0" text=" Hello World" textAlignment="CENTER">
74
+ <font>
75
+ <Font size="75.0" />
76
+ </font>
77
+ </Label>
78
+ </children>
79
+ </AnchorPane>
80
+
81
+ ```
82
+ ![プロジェクトの内容です](37b4b353af897a0043edd590dbd958d9.png)
83
+ なにかコードが書いてあるものはこれで全てです...
84
+ application.cssは白紙でした