Skip to content

Commit

Permalink
black borders for cells of ping table
Browse files Browse the repository at this point in the history
  • Loading branch information
Axle1975 committed Sep 6, 2023
1 parent 9831f4b commit 144864d
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,10 @@ private void createPingTable() {
(int) (red * 255) + "," +
(int) (green * 255) + "," +
(int) (blue * 255) + "," +
opacity + ");"
"1);" +
"-fx-border-color: black;" +
"-fx-border-width: 1px;" +
"-fx-border-style: solid;"
);
cell.setMinSize(10, 10); // Set cell size as needed
cell.setPrefSize(20, 20);
Expand All @@ -464,7 +467,7 @@ private void createPingTable() {
else {
cell.setUserData(String.format("%s\n%s\n(timeout)", playerUsername, peerUsername));
}
pingTableGridPane.add(cell, playerOrdinal, peerOrdinal);
pingTableGridPane.add(cell, peerOrdinal, playerOrdinal);
}
}
}
Expand Down

0 comments on commit 144864d

Please sign in to comment.