FileDocCategorySizeDatePackage
UISwitchListener.javaAPI DocSun JDK 1.4.2 Example2586Thu May 12 00:35:27 BST 2005None

UISwitchListener

public class UISwitchListener extends Object implements PropertyChangeListener
This class listens for UISwitches, and updates a given component.
version
1.8 01/23/03
author
Steve Wilson

Fields Summary
JComponent
componentToSwitch
Constructors Summary
public UISwitchListener(JComponent c)

        componentToSwitch = c;
    
Methods Summary
public voidpropertyChange(java.beans.PropertyChangeEvent e)

        String name = e.getPropertyName();
	if (name.equals("lookAndFeel")) {
	    SwingUtilities.updateComponentTreeUI(componentToSwitch);
	    componentToSwitch.invalidate();
	    componentToSwitch.validate();
	    componentToSwitch.repaint();
	}