Swing用UIManager.setLookAndFee怎么选择界面风格的

获取系统的lookandfeel
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
获取其它lookandfeel
javax.swing.UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
javax.swing.UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel");

javax.swing.UIManager.setLookAndFeel("com.sun.java.swing.plaf.mac.MacLookAndFeel");

设置成系统风格
javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName());



各种第三方风格(需要引jar)
javax.swing.UIManager.setLookAndFeel("com.birosoft.liquid.LiquidLookAndFeel");
javax.swing.UIManager.setLookAndFeel("com.pagosoft.plaf.PgsLookAndFeel");
javax.swing.UIManager.setLookAndFeel(new TonicLookAndFeel());
javax.swing.UIManager.setLookAndFeel("com.nilo.plaf.nimrod.NimRODLookAndFeel");

你可能感兴趣的:(java,Swing)