-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy paths2controller.java
More file actions
160 lines (110 loc) · 3.07 KB
/
Copy paths2controller.java
File metadata and controls
160 lines (110 loc) · 3.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
package hello.pages;
import java.io.IOException;
import hello.Main;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.control.ComboBox;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.image.ImageView;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.Border;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.Pane;
import javafx.scene.shape.Line;
import javafx.scene.control.Button;
import javafx.scene.control.ChoiceBox;
import hello.pages.s1controller;
public class s2controller extends AnchorPane
{
public static int[] red= Main.red;
public static int[] green=Main.green;
public static int[] blue= Main.blue;
@FXML
private AnchorPane subroots2;
@FXML
private AnchorPane subroots11;
@FXML
private Button Backs2;
@FXML
private Button Backs11;
@FXML
private Button Player1;
@FXML
private Button Player2;
@FXML
private Button Player3;
@FXML
private Button Player4;
@FXML
private Button Player5;
@FXML
private Button Player6;
@FXML
private Button Player7;
@FXML
private Button Player8;
@FXML
private void backs11() throws IOException
{
AnchorPane a1=FXMLLoader.load(Main.class.getResource("pages/s1.fxml"));
subroots11.getChildren().setAll(a1);
}
@FXML
private void backs2() throws IOException
{
AnchorPane a1=FXMLLoader.load(Main.class.getResource("pages/s1.fxml"));
subroots2.getChildren().setAll(a1);
}
@FXML
public void player1() throws IOException
{
AnchorPane a1=FXMLLoader.load(Main.class.getResource("pages/s3.fxml"));
subroots2.getChildren().setAll(a1);
}
@FXML
public void player2() throws IOException
{
AnchorPane a1=FXMLLoader.load(Main.class.getResource("pages/s4.fxml"));
subroots2.getChildren().setAll(a1);
}
@FXML
public void player3() throws IOException
{
AnchorPane a1=FXMLLoader.load(Main.class.getResource("pages/s5.fxml"));
subroots2.getChildren().setAll(a1);
}
@FXML
public void player4() throws IOException
{
AnchorPane a1=FXMLLoader.load(Main.class.getResource("pages/s6.fxml"));
subroots2.getChildren().setAll(a1);
}
//
@FXML
public void player5() throws IOException
{
AnchorPane a1=FXMLLoader.load(Main.class.getResource("pages/s7.fxml"));
subroots2.getChildren().setAll(a1);
}
@FXML
public void player6() throws IOException
{
AnchorPane a1=FXMLLoader.load(Main.class.getResource("pages/s8.fxml"));
subroots2.getChildren().setAll(a1);
}
@FXML
public void player7() throws IOException
{
AnchorPane a1=FXMLLoader.load(Main.class.getResource("pages/s9.fxml"));
subroots2.getChildren().setAll(a1);
}
@FXML
public void player8() throws IOException
{
AnchorPane a1=FXMLLoader.load(Main.class.getResource("pages/s10.fxml"));
subroots2.getChildren().setAll(a1);
}
}