The Java Developers Almanac 1.4


Order this book from Amazon.

   
Home > List of Packages > javax.swing  [141 examples] > Look and Feel  [4 examples]

e866. Determining the Available Look and Feels

    UIManager.LookAndFeelInfo[] info = UIManager.getInstalledLookAndFeels();
    for (int i=0; i<info.length; i++) {
        // Get the name of the look and feel that is suitable for display to the user
        String humanReadableName = info[i].getName();
    
        String className = info[i].getClassName();
        // The className is used with UIManager.setLookAndFeel()
        // See e867 Getting and Setting a Look and Feel
    }

 Related Examples
e867. Getting and Setting a Look and Feel
e868. Getting and Setting a Native Look and Feel
e869. Setting the Default Look and Feel Using a System Property or Property File

See also: Actions    JButton    JCheckBox    JComboBox    JDesktop and JInternalFrame    JFrame, JWindow, JDialog    JLabel    JList    JProgressBar    JRadioButton    JScrollPane    JSlider    JSpinner    JSplitPane    JTabbedPane    JToolBar    Keystrokes and Input Maps    Layout    Menus    Progress Monitor    The Screen    Tool Tips    UI Default Values   


© 2002 Addison-Wesley.