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

 

posted on 2014-12-16 15:51  过省  阅读(276)  评论(0编辑  收藏  举报

导航