質問編集履歴
1
ファイル構成の追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -64,6 +64,18 @@
|
|
64
64
|
|
65
65
|
|
66
66
|
|
67
|
+
構成は下記の通りとなっております。
|
68
|
+
|
69
|
+
src
|
70
|
+
|
71
|
+
├application
|
72
|
+
|
73
|
+
│ ├Main.java
|
74
|
+
|
75
|
+
│ └SampleController.java
|
76
|
+
|
77
|
+
└FXML ─ sample.fxml
|
78
|
+
|
67
79
|
```Main
|
68
80
|
|
69
81
|
package application;
|
@@ -162,7 +174,7 @@
|
|
162
174
|
|
163
175
|
private void loadFXML() {
|
164
176
|
|
165
|
-
FXMLLoader fxmlLoader = new FXMLLoader(Main.class.getResource"./Sample.fxml"));
|
177
|
+
FXMLLoader fxmlLoader = new FXMLLoader(Main.class.getResource"../fxml/Sample.fxml"));
|
166
178
|
|
167
179
|
fxmlLoader.setRoot(this);
|
168
180
|
|