Example usage for javax.swing JMenu getUIClassID

List of usage examples for javax.swing JMenu getUIClassID

Introduction

In this page you can find the example usage for javax.swing JMenu getUIClassID.

Prototype

@BeanProperty(bound = false)
public String getUIClassID() 

Source Link

Document

Returns the name of the L&F class that renders this component.

Usage

From source file:GetIt.java

public static void main(String args[]) throws Exception {
    JMenu it = new JMenu();
    String classID = it.getUIClassID();
    System.out.println(classID);//from  w  w w  .j a  va  2  s .co m
    String className = (String) UIManager.get(classID);
    System.out.println(className);
    Class.forName(className);
    System.out.println(System.getProperty("swing.defaultlaf"));
    System.out.println(System.getProperty("swing.auxiliarylaf"));
    System.out.println(System.getProperty("swing.plaf.multiplexinglaf"));
    System.out.println(System.getProperty("swing.installedlafs"));
}