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");
javaswing 自带风格
最新推荐文章于 2021-09-17 10:15:25 发布