From 0533ac105dcdbeb65691f5936bacca5b1162939e Mon Sep 17 00:00:00 2001 From: Tim Middleton Date: Tue, 15 Oct 2024 08:21:12 +0800 Subject: [PATCH] Minor federation panel update (#100) --- .../coherence/plugin/visualvm/helper/RenderHelper.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/coherence-visualvm-plugin/src/main/java/com/oracle/coherence/plugin/visualvm/helper/RenderHelper.java b/coherence-visualvm-plugin/src/main/java/com/oracle/coherence/plugin/visualvm/helper/RenderHelper.java index b23e343..60961af 100755 --- a/coherence-visualvm-plugin/src/main/java/com/oracle/coherence/plugin/visualvm/helper/RenderHelper.java +++ b/coherence-visualvm-plugin/src/main/java/com/oracle/coherence/plugin/visualvm/helper/RenderHelper.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2020, 2024 Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -652,14 +652,15 @@ public static class FedNodeStateRenderer public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { - Component c = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); + Component c = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); + String sText = getText(); - if ("ERROR".equals(getText())) + if ("ERROR".equals(sText)) { setBackground(Color.red); setForeground(Color.white); } - else if ("BACKLOG_EXCESSIVE".equals(getText())) + else if ("BACKLOG_EXCESSIVE".equals(sText) || sText != null && sText.contains("_WAIT")) { setBackground(Color.orange); setForeground(Color.black);