From a82838dfd63ee419f4aa78cefd57c7e7fd88d019 Mon Sep 17 00:00:00 2001 From: anhefti Date: Mon, 9 Dec 2019 12:16:51 +0100 Subject: [PATCH] fixed session table color update --- .../sebserver/gui/service/session/ClientConnectionTable.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/service/session/ClientConnectionTable.java b/src/main/java/ch/ethz/seb/sebserver/gui/service/session/ClientConnectionTable.java index 6d2c39bb..549f9a59 100644 --- a/src/main/java/ch/ethz/seb/sebserver/gui/service/session/ClientConnectionTable.java +++ b/src/main/java/ch/ethz/seb/sebserver/gui/service/session/ClientConnectionTable.java @@ -319,9 +319,14 @@ public final class ClientConnectionTable { ClientConnectionTable.this.sessionIds.get(this.connectionData.clientConnection.userSessionId); if (list != null && list.size() > 1) { tableItem.setBackground(0, ClientConnectionTable.this.statusData.color3); + tableItem.setForeground(0, ClientConnectionTable.this.lightFontColor); } else { tableItem.setBackground(0, null); + tableItem.setForeground(0, ClientConnectionTable.this.darkFontColor); } + } else { + tableItem.setBackground(0, null); + tableItem.setForeground(0, ClientConnectionTable.this.darkFontColor); } }