-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathListOfLabels.java
More file actions
42 lines (28 loc) · 840 Bytes
/
Copy pathListOfLabels.java
File metadata and controls
42 lines (28 loc) · 840 Bytes
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
package wf.util;
import java.util.ArrayList;
import java.util.List;
import javafx.scene.control.Label;
public class ListOfLabels {
private static final ListOfLabels INSTANCE = new ListOfLabels();
public ListOfLabels() {
}
public List<Label> getListOfLabels() {
final Label ch0_lb = new Label("1", null);
final Label ch1_lb = new Label("2", null);
final Label ch2_lb = new Label("3", null);
final Label ch3_lb = new Label("4", null);
ch0_lb.setId("coboLabel");
ch1_lb.setId("coboLabel");
ch2_lb.setId("coboLabel");
ch3_lb.setId("coboLabel");
List<Label> labels = new ArrayList<Label>();
labels.add(ch0_lb);
labels.add(ch1_lb);
labels.add(ch2_lb);
labels.add(ch3_lb);
return labels;
}
public static ListOfLabels getInstance() {
return INSTANCE;
}
}