javaswing 自带风格

来源:互联网 发布:淘宝运营团队介绍 编辑:程序博客网 时间:2024/04/30 09:26
String windows="com.sun.java.swing.plaf.windows.WindowsLookAndFeel";UIManager.setLookAndFeel(windows);UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");//Nimbus风格,新出来的外观,jdk6 update10版本以后的才会出现//UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());//当前系统风格//UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel");//Motif风格,外观接近windows经典,但宽宽大大,而且不是黑灰主色,而是蓝黑//UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());//跨平台的Java界面风格,不太明白这种说法//UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");//windows风格//UIManager.setLookAndFeel("javax.swing.plaf.windows.WindowsLookAndFeel");//windows风格//UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");//java风格//UIManager.setLookAndFeel("com.apple.mrj.swing.MacLookAndFeel");
0 0