Example usage for javax.swing UIManager getAuxiliaryLookAndFeels

List of usage examples for javax.swing UIManager getAuxiliaryLookAndFeels

Introduction

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

Prototype

public static LookAndFeel[] getAuxiliaryLookAndFeels() 

Source Link

Document

Returns the list of auxiliary look and feels (can be null).

Usage

From source file:Main.java

public static void main(String[] args) {
    System.out.println("  " + UIManager.getLookAndFeel().getName());

    UIManager.LookAndFeelInfo[] inst = UIManager.getInstalledLookAndFeels();
    for (int i = 0; i < inst.length; i++) {
        System.out.println("  " + inst[i].getName());
    }/* w w w . j  av  a  2  s . c  om*/

    LookAndFeel[] aux = UIManager.getAuxiliaryLookAndFeels();
    if (aux != null) {
        for (int i = 0; i < aux.length; i++) {
            System.out.println("  " + aux[i].getName());
        }
    } else {
        System.out.println("  <NONE>");
    }
    System.out.println("  " + UIManager.getCrossPlatformLookAndFeelClassName());
    System.out.println("  " + UIManager.getSystemLookAndFeelClassName());
}

From source file:UIManagerDefaults.java

public static void main(String[] args) {
    System.out.println("Default L&F:");
    System.out.println("  " + UIManager.getLookAndFeel().getName());

    UIManager.LookAndFeelInfo[] inst = UIManager.getInstalledLookAndFeels();
    System.out.println("Installed L&Fs: ");
    for (int i = 0; i < inst.length; i++) {
        System.out.println("  " + inst[i].getName());
    }//  www  . j a va 2  s. co  m

    LookAndFeel[] aux = UIManager.getAuxiliaryLookAndFeels();
    System.out.println("Auxiliary L&Fs: ");
    if (aux != null) {
        for (int i = 0; i < aux.length; i++) {
            System.out.println("  " + aux[i].getName());
        }
    } else {
        System.out.println("  <NONE>");
    }

    System.out.println("Cross-Platform:");
    System.out.println(UIManager.getCrossPlatformLookAndFeelClassName());

    System.out.println("System:");
    System.out.println(UIManager.getSystemLookAndFeelClassName());

    System.exit(0);
}