public Component getListCellRendererComponent( JList list, Object value, int modelIndex, boolean isSelected, boolean cellHasFocus) { Component c= super.getListCellRendererComponent(list, value, modelIndex, isSelected, cellHasFocus); TestFailure failure= (TestFailure)value; String text= failure.failedTest().toString(); String msg= failure.exceptionMessage(); if (msg != null) text+= ":" + BaseTestRunner.truncate(msg); if (failure.isFailure()) { if (fFailureIcon != null) setIcon(fFailureIcon); } else { if (fErrorIcon != null) setIcon(fErrorIcon); } setText(text); setToolTipText(text); return c; } }