FileDocCategorySizeDatePackage
UISwitchListener.javaAPI DocExample1580Sat Sep 12 03:01:00 BST 1998None

UISwitchListener

public class UISwitchListener extends Object implements PropertyChangeListener
This class listens for UISwitches, and updates a given component.
version
1.1 02/04/98
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();
	}