Skip to content

Commit 0533ac1

Browse files
authored
Minor federation panel update (#100)
1 parent bd11df7 commit 0533ac1

File tree

1 file changed

+5
-4
lines changed
  • coherence-visualvm-plugin/src/main/java/com/oracle/coherence/plugin/visualvm/helper

1 file changed

+5
-4
lines changed

coherence-visualvm-plugin/src/main/java/com/oracle/coherence/plugin/visualvm/helper/RenderHelper.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2020, 2024 Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -652,14 +652,15 @@ public static class FedNodeStateRenderer
652652
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected,
653653
boolean hasFocus, int row, int column)
654654
{
655-
Component c = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
655+
Component c = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
656+
String sText = getText();
656657

657-
if ("ERROR".equals(getText()))
658+
if ("ERROR".equals(sText))
658659
{
659660
setBackground(Color.red);
660661
setForeground(Color.white);
661662
}
662-
else if ("BACKLOG_EXCESSIVE".equals(getText()))
663+
else if ("BACKLOG_EXCESSIVE".equals(sText) || sText != null && sText.contains("_WAIT"))
663664
{
664665
setBackground(Color.orange);
665666
setForeground(Color.black);

0 commit comments

Comments
 (0)