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