Example usage for com.jgoodies.validation.view ValidationResultViewFactory getSmallIcon

List of usage examples for com.jgoodies.validation.view ValidationResultViewFactory getSmallIcon

Introduction

In this page you can find the example usage for com.jgoodies.validation.view ValidationResultViewFactory getSmallIcon.

Prototype

public static Icon getSmallIcon(Severity severity) 

Source Link

Document

Returns the small warning icon for warnings, the small error icon for errors, the small info icon for infos and null otherwise.

Usage

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;
}