public void repaintTrafficLightIcon() { MyErrorPanel errorPanel = getErrorPanel(); if (errorPanel != null) { errorPanel.myErrorStripeButton.repaint(); errorPanel.repaintTrafficTooltip(); } }