質問編集履歴
1
コメントによる情報の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -112,7 +112,7 @@
|
|
112
112
|
|
113
113
|
} catch (IOException ex) {
|
114
114
|
|
115
|
-
Logger.getLogger(
|
115
|
+
Logger.getLogger(swingFX.class.getName()).log(Level.SEVERE, null, ex);
|
116
116
|
|
117
117
|
System.out.println("FXMLロードエラー");
|
118
118
|
|
@@ -124,8 +124,6 @@
|
|
124
124
|
|
125
125
|
stage.setScene(scene);
|
126
126
|
|
127
|
-
final SampleController controller = (SampleController) loader.getController();
|
128
|
-
|
129
127
|
stage.show();
|
130
128
|
|
131
129
|
}
|
@@ -147,3 +145,67 @@
|
|
147
145
|
|
148
146
|
|
149
147
|
拙文ですがよろしくお願いします。
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
### 情報の追加:test2.fxml
|
156
|
+
|
157
|
+
```test2.fxml
|
158
|
+
|
159
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
<?import javafx.scene.control.Label?>
|
164
|
+
|
165
|
+
<?import javafx.scene.layout.AnchorPane?>
|
166
|
+
|
167
|
+
<?import javafx.scene.layout.BorderPane?>
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8.0.60" xmlns:fx="http://javafx.com/fxml/1">
|
172
|
+
|
173
|
+
<children>
|
174
|
+
|
175
|
+
<BorderPane prefHeight="400.0" prefWidth="400.0">
|
176
|
+
|
177
|
+
<right>
|
178
|
+
|
179
|
+
<Label text="橙色の所に上記paneをあてはめたい→ " BorderPane.alignment="CENTER" />
|
180
|
+
|
181
|
+
</right></BorderPane>
|
182
|
+
|
183
|
+
<BorderPane layoutX="398.0" prefHeight="400.0" prefWidth="208.0" style="-fx-background-color: FF9300;" />
|
184
|
+
|
185
|
+
</children>
|
186
|
+
|
187
|
+
</AnchorPane>
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
```
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
>あとあればfx:controller=がさすjavaのクラスもお願いします
|
196
|
+
|
197
|
+
すみませんが、ありません。
|
198
|
+
|
199
|
+
作ったファイルは、
|
200
|
+
|
201
|
+
src/application/ItabashiNode.java
|
202
|
+
|
203
|
+
src/application/swingFX.java
|
204
|
+
|
205
|
+
src/application/test2.fxml
|
206
|
+
|
207
|
+
の3点となります。
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
controllerクラスは作っていません。
|