com.jgoodies.uif.util
Class ComponentTreeUtils

java.lang.Object
  extended by com.jgoodies.uif.util.ComponentTreeUtils

public final class ComponentTreeUtils
extends Object

Consists only of static methods for operations on the Swing component tree.

Version:
$Revision: 1.5 $
Author:
Karsten Lentzsch
See Also:
SwingUtilities

Method Summary
static void updateAllUIs()
          Updates all UIs of all frames and their owned windows.
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

updateAllUIs

public static void updateAllUIs()
Updates all UIs of all frames and their owned windows.


updateComponentTreeUI

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. Unlike SwingUtilities, we update a JToolBar's childs before updating the toolbar. Note, that the JScrollPane requires to be updated before its JTable child (re-)configuresScrollPane.

TODO: Check if this workaround is still necessary in Java 5 or later.

Parameters:
c - the root of the component tree to update


Copyright © 2000-2008 JGoodies Karsten Lentzsch. All Rights Reserved.