首页 > 代码库 > swing设置观感

swing设置观感

1、先获取当前系统支持的观感样式

1 UIManager.LookAndFellInfo[] infos = UIManager.getInstalledLookAndFeels();2 3 String className = infos[i].getClassName();
View Code

 

 

2、设置当前窗体的观感

UIManager.setLookAndFeel(className);SwingUtilties.updateComponentTreeUI(frame);
View Code

 

swing设置观感