<代码>//金属风格(默认) 字符串lookAndFeel=癹avax.swing.plaf.metal.MetalLookAndFeel”; UIManager.setLookAndFee (lookAndFeel);//窗口风格 字符串lookAndFeel=癱om.sun.java.swing.plaf.windows.WindowsLookAndFeel”; UIManager.setLookAndFee (lookAndFeel);//Windows经典风格 字符串lookAndFeel=癱om.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel”; UIManager.setLookAndFee (lookAndFeel);//主题风格 字符串lookAndFeel=癱om.sun.java.swing.plaf.motif.MotifLookAndFeel”; UIManager.setLookAndFeel (lookAndFeel);//Mac风格(需要在相关的操作系统上方可实现) 字符串lookAndFeel=癱om.sun.java.swing.plaf.mac.MacLookAndFeel”; UIManager.setLookAndFeel (lookAndFeel);//GTK风格(需要在相关的操作系统上方可实现) 字符串lookAndFeel=癱om.sun.java.swing.plaf.gtk.GTKLookAndFeel”; UIManager.setLookAndFeel (lookAndFeel);//可跨平台的默认风格 字符串lookAndFeel=UIManager.getCrossPlatformLookAndFeelClassName (); UIManager.setLookAndFeel (lookAndFeel);//当前系统的风格 字符串lookAndFeel=UIManager.getSystemLookAndFeelClassName (); UIManager.setLookAndFeel (lookAndFeel); 代码>