public void propertyChange(PropertyChangeEvent event) {  String name = event.getPropertyName();
String name = event.getPropertyName();
  protected PropertyChangeListener createActionPropertyChangeListener(Action action)  {    return new PropertyChangeListener()      {	public void propertyChange(PropertyChangeEvent event)	{	  // Update properties "action" and "horizontalAlignment".	  String name = event.getPropertyName();	  if (name.equals("enabled"))	    {	      boolean enabled = ((Boolean) event.getNewValue()).booleanValue();	      JTextField.this.setEnabled(enabled);	    }	  else if (name.equals(Action.SHORT_DESCRIPTION))	    {	      JTextField.this.setToolTipText((String) event.getNewValue());	    }	}      };  }