Java Swing Look and Feel setMotifLookAndFeel()

Here you can find the source of setMotifLookAndFeel()

Description

Old Skool Look and Feel.

License

BSD License

Declaration

public static void setMotifLookAndFeel() 

Method Source Code

//package com.java2s;
/**/*from ww w.  java  2s . c o m*/
 * <p>
 * This class contains useful methods for positioning, sizing, and manipulating JFrames and other
 * Window-like elements.
 * </p>
 * <p>
 * <span class="BSDLicense"> This software is distributed under the <a
 * href="http://hci.stanford.edu/research/copyright.txt">BSD License</a>. </span>
 * </p>
 * 
 * @author <a href="http://graphics.stanford.edu/~ronyeh">Ron B Yeh</a> (ronyeh(AT)cs.stanford.edu)
 */

import javax.swing.UIManager;

public class Main {
    /**
     * Old Skool Look and Feel.
     */
    public static void setMotifLookAndFeel() {
        try {
            UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel");
        } catch (Exception e) {
            System.out.println("Error setting Motif LAF: " + e);
        }
    }
}

Related

  1. setLookAndFeel(String lookAndFeelClass)
  2. setLookAndFeelByName(final String lookAndFeel)
  3. setLookAndTheme(LookAndFeel laf, Object theme)
  4. setMetalLAF()
  5. setMotifLookAndFeel()
  6. setMotifLookAndFeel()
  7. setNativeLookAndFeel()
  8. setNativeLookAndFeel()
  9. setNiceSwingLookAndFeel()