Code example for PropertyChangeEvent

Methods: getNewValue, getPropertyName, getSource

0
	 * {@inheritDoc} 
	 */ 
	@Override 
	public void propertyChange(PropertyChangeEvent event)
	{ 
		Label component = (Label) event.getSource();
		String name = event.getPropertyName();
//		Object oldValue = event.getOldValue(); 
		Object newValue = event.getNewValue();
		JLabel label = (JLabel) getPeerManager().getPeer(component);
		 
		if (Label.IMAGE_PROPERTY.equals(name))
		{ 
			// TODO: implement 
		} 
		else if (Label.TEXT_PROPERTY.equals(name))
		{ 
			label.setText((String) newValue);
		} 
		else if (Label.TOOL_TIP_PROPERTY.equals(name))
		{