Example usage for javax.swing UIManager.LookAndFeelInfo getClass

List of usage examples for javax.swing UIManager.LookAndFeelInfo getClass

Introduction

In this page you can find the example usage for javax.swing UIManager.LookAndFeelInfo getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:com.sshtools.appframework.ui.SshToolsApplication.java

public static void addLAF(UIManager.LookAndFeelInfo laf) {
    for (UIManager.LookAndFeelInfo info : LAFS) {
        if (info.getName().equals(laf.getName())) {
            try {
                laf.getClass().getClassLoader().loadClass(info.getClassName());
            } catch (Throwable t) {
            }/*from   www.  jav  a 2  s .c  om*/
            return;
        }
    }
    LAFS.add(laf);
}