質問編集履歴
3
誤字
title
CHANGED
File without changes
|
body
CHANGED
@@ -39,7 +39,7 @@
|
|
39
39
|
Label label;
|
40
40
|
|
41
41
|
|
42
|
-
public Window(String labelText
|
42
|
+
public Window(String labelText) {
|
43
43
|
this.labelText = labelText;
|
44
44
|
|
45
45
|
loadFXML();
|
@@ -52,7 +52,7 @@
|
|
52
52
|
*/
|
53
53
|
private void loadFXML() {
|
54
54
|
|
55
|
-
FXMLLoader fxmlLoader = new FXMLLoader(
|
55
|
+
FXMLLoader fxmlLoader = new FXMLLoader(.class.getResource("Window.fxml"));
|
56
56
|
fxmlLoader.setRoot(this);
|
57
57
|
|
58
58
|
|
2
誤字
title
CHANGED
File without changes
|
body
CHANGED
@@ -25,10 +25,12 @@
|
|
25
25
|
</fx:root>
|
26
26
|
|
27
27
|
|
28
|
+
|
29
|
+
```
|
30
|
+
```
|
28
31
|
WindowController.java
|
29
32
|
コード
|
30
|
-
|
33
|
+
|
31
|
-
```ここに言語を入力
|
32
34
|
public class Window extends AnchorPane implements Initializable {
|
33
35
|
|
34
36
|
String labelText;
|
1
誤字
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
###前提・実現したいこと
|
2
2
|
SceneBuilderを用いて作成した下地の画面にfor文を用いて複数個連続でボタンを作るにはどのようにしたらよいでしょうか?イメージとしてはLabel(黒線)の下の赤枠の部分にボタンを複数個配置する感じです。
|
3
3
|
```ここに言語を入力
|
4
|
-
|
4
|
+
Window.fxml
|
5
5
|
コード
|
6
6
|
> ```<?xml version="1.0" encoding="UTF-8"?>
|
7
7
|
|
@@ -50,7 +50,7 @@
|
|
50
50
|
*/
|
51
51
|
private void loadFXML() {
|
52
52
|
|
53
|
-
FXMLLoader fxmlLoader = new FXMLLoader(C_liberty.class.getResource("
|
53
|
+
FXMLLoader fxmlLoader = new FXMLLoader(C_liberty.class.getResource("Window.fxml"));
|
54
54
|
fxmlLoader.setRoot(this);
|
55
55
|
|
56
56
|
|