List of usage examples for com.jgoodies.validation.view ValidationResultViewFactory getSmallIcon
public static Icon getSmallIcon(Severity severity)
From source file:com.aw.swing.mvp.ui.painter.ErrorBorderPainter.java
License:Open Source License
private JComponent createFeedbackComponent() { Icon icon = ValidationResultViewFactory.getSmallIcon(Severity.ERROR); JLabel label = new JLabel(icon); label.setToolTipText("Fail"); label.setSize(label.getPreferredSize()); return label; }