-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUIPASOutputTable.java
More file actions
42 lines (31 loc) · 1 KB
/
UIPASOutputTable.java
File metadata and controls
42 lines (31 loc) · 1 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
import java.util.*;
import javafx.beans.binding.*;
import javafx.collections.*;
import javafx.geometry.*;
import javafx.scene.*;
import javafx.scene.control.*;
import javafx.scene.control.cell.*;
import javafx.scene.input.*;
import javafx.scene.layout.*;
import javafx.scene.text.*;
import javafx.stage.*;
import javafx.util.*;
public class UIPASOutputTable {
public static GridPane createTable(UIMainWindow mainWindow,
Stage window,
List<String> outputs)
{
GridPane table = new GridPane();
int row = 1;
for (String output : outputs) {
Label labelOutput = new Label(output);
Pane containerOutput = new Pane();
containerOutput.getChildren().add(labelOutput);
table.add(containerOutput, 0, row, 1, 1);
if (row % 2 != 0) containerOutput.setStyle("-fx-background-color: #bbbbbb;");
++row;
}
table.setHgap(10);
return table;
} // createTable()
}