调用 SwingUtilities.updateComponentTreeUI(Frame名);
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.

解决方案 »

  1.   

    SwingUtilities.updateComponentTreeUI(Component c)
      

  2.   

    在主窗体使用SwingUtilities.updateComponentTreeUI(Component c) 后,对主窗体确实有作用,但在新打开的JDialog中使用此方法仍然不起作用.不知何故?
      

  3.   

    上面的问题总算搞定了,谢谢各位的参与,还有另外一个问题:转换Look&Feel后,为何有些组件的大小发生了变化?且使用setSize()之类的方法根本不起作用.
      

  4.   

    SwingUtilities.updateComponentTreeUI(Component c)