質問編集履歴
1
コードを書き直した
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,8 +24,12 @@
|
|
24
24
|
|
25
25
|
###該当のソースコード
|
26
26
|
|
27
|
+
```ここに言語を入力
|
28
|
+
|
27
29
|
Main.java
|
28
30
|
|
31
|
+
|
32
|
+
|
29
33
|
public class Main extends Application {
|
30
34
|
|
31
35
|
|
@@ -60,10 +64,22 @@
|
|
60
64
|
|
61
65
|
|
62
66
|
|
67
|
+
|
68
|
+
|
69
|
+
```
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
```ここに言語を入力
|
76
|
+
|
63
77
|
SampleController.java
|
64
78
|
|
65
79
|
|
66
80
|
|
81
|
+
public class SampleController {
|
82
|
+
|
67
83
|
@FXML GridPane gridp;
|
68
84
|
|
69
85
|
AnchorPane syuturyokuroot;
|
@@ -76,11 +92,11 @@
|
|
76
92
|
|
77
93
|
void setteisyori() throws IOException{
|
78
94
|
|
79
|
-
|
95
|
+
syuturyokuroot = (AnchorPane)FXMLLoader.load(getClass().getResource("settei.fxml"));
|
80
|
-
|
96
|
+
|
81
|
-
|
97
|
+
Scene syuturyokuscene = new Scene(syuturyokuroot,800,700);
|
82
|
-
|
98
|
+
|
83
|
-
|
99
|
+
syuturyokustage.setScene(syuturyokuscene);
|
84
100
|
|
85
101
|
syuturyokustage.show();
|
86
102
|
|
@@ -92,14 +108,22 @@
|
|
92
108
|
|
93
109
|
void kakuninsyori(){
|
94
110
|
|
95
|
-
System.out.println(((TextInputControl) gridp.getChildren().get(0)).getText());
|
111
|
+
System.out.println(((TextInputControl) gridp.getChildren().get(0)).getText());
|
96
|
-
|
112
|
+
|
97
|
-
}
|
113
|
+
}
|
114
|
+
|
98
|
-
|
115
|
+
}
|
116
|
+
|
99
|
-
|
117
|
+
```
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
```ここに言語を入力
|
100
122
|
|
101
123
|
sample.fxml
|
102
124
|
|
125
|
+
|
126
|
+
|
103
127
|
<AnchorPane fx:id="anchor0" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="900.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="sample.SampleController">
|
104
128
|
|
105
129
|
<children>
|
@@ -130,10 +154,16 @@
|
|
130
154
|
|
131
155
|
</AnchorPane>
|
132
156
|
|
133
|
-
|
157
|
+
```
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
```ここに言語を入力
|
134
162
|
|
135
163
|
settei.fxml
|
136
164
|
|
165
|
+
|
166
|
+
|
137
167
|
<AnchorPane fx:id="anchorsyutu" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="471.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="sample.SampleController">
|
138
168
|
|
139
169
|
<children>
|
@@ -182,6 +212,8 @@
|
|
182
212
|
|
183
213
|
</AnchorPane>
|
184
214
|
|
215
|
+
```
|
216
|
+
|
185
217
|
|
186
218
|
|
187
219
|
|