Java Code Examples for com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel

The following are top voted examples for showing how to use com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: ScreenCut   File: ScreenCut.java   View source code 6 votes vote down vote up
/**
 * 调用此截图工具的应用程序未使用第三方皮肤时 nolnf=true 否则传false
 *
 * @param nolnf
 */
public static void ShowScreenCut(boolean nolnf) {
    try {
        if (nolnf) {
            UIManager.setLookAndFeel(new NimbusLookAndFeel());
        }
    } catch (Exception ex) {
        Logger.getLogger(ScreenCut.class.getName()).log(Level.SEVERE, null, ex);
    }
    JDialog.setDefaultLookAndFeelDecorated(false);
    /* Create and display the dialog */
    java.awt.EventQueue.invokeLater(new Runnable() {
        public void run() {
            ScreenCut dialog = new ScreenCut(new javax.swing.JFrame(), true);
            dialog.addWindowListener(new java.awt.event.WindowAdapter() {
                @Override
                public void windowClosing(java.awt.event.WindowEvent e) {
                    System.exit(0);
                }
            });
            dialog.setVisible(true);
        }
    });
}
 
Example 2
Project: jdk8u-jdk   File: bug6937798.java   View source code 5 votes vote down vote up
public static void main(String... args) throws Exception {
    UIManager.setLookAndFeel(new NimbusLookAndFeel());
    SwingUtilities.invokeAndWait(new Runnable() {
        public void run() {
            new bug6937798();
        }
    });
}
 
Example 3
Project: openjdk9   File: bug6937798.java   View source code 5 votes vote down vote up
public static void main(String... args) throws Exception {
    UIManager.setLookAndFeel(new NimbusLookAndFeel());
    SwingUtilities.invokeAndWait(new Runnable() {
        public void run() {
            new bug6937798();
        }
    });
}
 
Example 4
Project: jdk8u_jdk   File: bug6937798.java   View source code 5 votes vote down vote up
public static void main(String... args) throws Exception {
    UIManager.setLookAndFeel(new NimbusLookAndFeel());
    SwingUtilities.invokeAndWait(new Runnable() {
        public void run() {
            new bug6937798();
        }
    });
}
 
Example 5
Project: lookaside_java-1.8.0-openjdk   File: bug6937798.java   View source code 5 votes vote down vote up
public static void main(String... args) throws Exception {
    UIManager.setLookAndFeel(new NimbusLookAndFeel());
    SwingUtilities.invokeAndWait(new Runnable() {
        public void run() {
            new bug6937798();
        }
    });
}
 
Example 6
Project: jMonitorFirebird   File: Main.java   View source code 5 votes vote down vote up
public static void main(String[] args) {
    
    JFrame.setDefaultLookAndFeelDecorated(true);
    try {
        UIManager.setLookAndFeel(new NimbusLookAndFeel());
    } catch (Exception e) {
        e.printStackTrace();
    }
    new MonitorControl();
}
 
Example 7
Project: infobip-open-jdk-8   File: bug6937798.java   View source code 5 votes vote down vote up
public static void main(String... args) throws Exception {
    UIManager.setLookAndFeel(new NimbusLookAndFeel());
    SwingUtilities.invokeAndWait(new Runnable() {
        public void run() {
            new bug6937798();
        }
    });
}
 
Example 8
Project: jdk8u-dev-jdk   File: bug6937798.java   View source code 5 votes vote down vote up
public static void main(String... args) throws Exception {
    UIManager.setLookAndFeel(new NimbusLookAndFeel());
    SwingUtilities.invokeAndWait(new Runnable() {
        public void run() {
            new bug6937798();
        }
    });
}
 
Example 9
Project: jdk7-jdk   File: bug6937798.java   View source code 5 votes vote down vote up
public static void main(String... args) throws Exception {
    UIManager.setLookAndFeel(new NimbusLookAndFeel());
    SwingUtilities.invokeAndWait(new Runnable() {
        public void run() {
            new bug6937798();
        }
    });
}
 
Example 10
Project: openjdk-source-code-learn   File: bug6937798.java   View source code 5 votes vote down vote up
public static void main(String... args) throws Exception {
    UIManager.setLookAndFeel(new NimbusLookAndFeel());
    SwingUtilities.invokeAndWait(new Runnable() {
        public void run() {
            new bug6937798();
        }
    });
}
 
Example 11
Project: OLD-OpenJDK8   File: bug6937798.java   View source code 5 votes vote down vote up
public static void main(String... args) throws Exception {
    UIManager.setLookAndFeel(new NimbusLookAndFeel());
    SwingUtilities.invokeAndWait(new Runnable() {
        public void run() {
            new bug6937798();
        }
    });
}
 
Example 12
Project: JAVA_UNIT   File: bug6937798.java   View source code 5 votes vote down vote up
public static void main(String... args) throws Exception {
    UIManager.setLookAndFeel(new NimbusLookAndFeel());
    SwingUtilities.invokeAndWait(new Runnable() {
        public void run() {
            new bug6937798();
        }
    });
}
 
Example 13
Project: openjdk-jdk7u-jdk   File: bug6937798.java   View source code 5 votes vote down vote up
public static void main(String... args) throws Exception {
    UIManager.setLookAndFeel(new NimbusLookAndFeel());
    SwingUtilities.invokeAndWait(new Runnable() {
        public void run() {
            new bug6937798();
        }
    });
}
 
Example 14
Project: openjdk-icedtea7   File: bug6937798.java   View source code 5 votes vote down vote up
public static void main(String... args) throws Exception {
    UIManager.setLookAndFeel(new NimbusLookAndFeel());
    SwingUtilities.invokeAndWait(new Runnable() {
        public void run() {
            new bug6937798();
        }
    });
}
 
Example 15
Project: jdk8u-jdk   File: Test6741426.java   View source code 4 votes vote down vote up
public static void main(String[] args) throws Exception {
    UIManager.setLookAndFeel(new NimbusLookAndFeel());
    SwingUtilities.invokeAndWait(new Test6741426());
}
 
Example 16
Project: openjdk9   File: Test6741426.java   View source code 4 votes vote down vote up
public static void main(String[] args) throws Exception {
    UIManager.setLookAndFeel(new NimbusLookAndFeel());
    SwingUtilities.invokeAndWait(new Test6741426());
}
 
Example 17
Project: jdk8u_jdk   File: Test6741426.java   View source code 4 votes vote down vote up
public static void main(String[] args) throws Exception {
    UIManager.setLookAndFeel(new NimbusLookAndFeel());
    SwingUtilities.invokeAndWait(new Test6741426());
}
 
Example 18
Project: lookaside_java-1.8.0-openjdk   File: Test6741426.java   View source code 4 votes vote down vote up
public static void main(String[] args) throws Exception {
    UIManager.setLookAndFeel(new NimbusLookAndFeel());
    SwingUtilities.invokeAndWait(new Test6741426());
}
 
Example 19
Project: infobip-open-jdk-8   File: Test6741426.java   View source code 4 votes vote down vote up
public static void main(String[] args) throws Exception {
    UIManager.setLookAndFeel(new NimbusLookAndFeel());
    SwingUtilities.invokeAndWait(new Test6741426());
}
 
Example 20
Project: jdk8u-dev-jdk   File: Test6741426.java   View source code 4 votes vote down vote up
public static void main(String[] args) throws Exception {
    UIManager.setLookAndFeel(new NimbusLookAndFeel());
    SwingUtilities.invokeAndWait(new Test6741426());
}
 
Example 21
Project: jdk7-jdk   File: Test6741426.java   View source code 4 votes vote down vote up
public static void main(String[] args) throws Exception {
    UIManager.setLookAndFeel(new NimbusLookAndFeel());
    SwingUtilities.invokeAndWait(new Test6741426());
}
 
Example 22
Project: openjdk-source-code-learn   File: Test6741426.java   View source code 4 votes vote down vote up
public static void main(String[] args) throws Exception {
    UIManager.setLookAndFeel(new NimbusLookAndFeel());
    SwingUtilities.invokeAndWait(new Test6741426());
}
 
Example 23
Project: OLD-OpenJDK8   File: Test6741426.java   View source code 4 votes vote down vote up
public static void main(String[] args) throws Exception {
    UIManager.setLookAndFeel(new NimbusLookAndFeel());
    SwingUtilities.invokeAndWait(new Test6741426());
}
 
Example 24
Project: JAVA_UNIT   File: Test6741426.java   View source code 4 votes vote down vote up
public static void main(String[] args) throws Exception {
    UIManager.setLookAndFeel(new NimbusLookAndFeel());
    SwingUtilities.invokeAndWait(new Test6741426());
}
 
Example 25
Project: openjdk-jdk7u-jdk   File: Test6741426.java   View source code 4 votes vote down vote up
public static void main(String[] args) throws Exception {
    UIManager.setLookAndFeel(new NimbusLookAndFeel());
    SwingUtilities.invokeAndWait(new Test6741426());
}
 
Example 26
Project: openjdk-icedtea7   File: Test6741426.java   View source code 4 votes vote down vote up
public static void main(String[] args) throws Exception {
    UIManager.setLookAndFeel(new NimbusLookAndFeel());
    SwingUtilities.invokeAndWait(new Test6741426());
}