code: protected void onChange()
  	{
  		enabled = false;
  		if (getDocument().getLength() > 0)
  		{
  			enabled = true;
  		}
  		buttonModel.setEnabled(enabled);
  	}
docs: Callback method that can be overwritten to provide specific action on change of document.