UIManager.LookAndFeelInfo []info=UIManager.getInstalledLookAndFeels() ; //获取风格
for(UIManager.LookAndFeelInfo tem:info)
{
System.out.println(tem.getClassName());
}
UIManager.setLookAndFeel("javax.swing.plaf.nimbus.NimbusLookAndFeel");//设置风格<img src="https://img-blog.csdn.net/20150428172751474" alt="" />