文档里不是说过么:
public static void updateComponentTreeUI(Component c)A simple minded look and feel change: ask each node in the tree to updateUI() -- that is, to initialize its UI property with the current look and feel.
用来更新look and feel。比如: Class lnfClass = Class.forName(className);
UIManager.setLookAndFeel(
(LookAndFeel) (lnfClass.newInstance()));
SwingUtilities.updateComponentTreeUI(
frame);
这样整个frame的look and feel就被动态更新了。
public static void updateComponentTreeUI(Component c)A simple minded look and feel change: ask each node in the tree to updateUI() -- that is, to initialize its UI property with the current look and feel.
用来更新look and feel。比如: Class lnfClass = Class.forName(className);
UIManager.setLookAndFeel(
(LookAndFeel) (lnfClass.newInstance()));
SwingUtilities.updateComponentTreeUI(
frame);
这样整个frame的look and feel就被动态更新了。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货