SwingUtilities.updateComponentTreeUI是干什么的,起什么作用,请详细点,谢谢,给分

hurt75 2003-10-17 11:49:34
SwingUtilities.updateComponentTreeUI是干什么的,起什么作用,请详细点,谢谢,给分
...全文
386 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
stonegump 2003-10-17
  • 打赏
  • 举报
回复
文档里不是说过么:
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就被动态更新了。

62,612

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧