switch(id) { case COMPONENT_SHOWN: typeStr = "COMPONENT_SHOWN"; break; case COMPONENT_HIDDEN: typeStr = "COMPONENT_HIDDEN"; break; case COMPONENT_MOVED: typeStr = "COMPONENT_MOVED ("+ d.width+postfix+"x"+d.height+postfix+")"; break; case COMPONENT_RESIZED: typeStr = "COMPONENT_RESIZED ("+ d.width+postfix+"x"+d.height+postfix+")"; break; default: typeStr = "unknown type";
switch (id) { case COMPONENT_SHOWN: typeStr = "COMPONENT_SHOWN"; break; case COMPONENT_HIDDEN: typeStr = "COMPONENT_HIDDEN"; break; case COMPONENT_MOVED: typeStr = "COMPONENT_MOVED ("+ d.width + "x" + d.height + ")"; break; case COMPONENT_RESIZED: typeStr = "COMPONENT_RESIZED (" + d.width + "x" + d.height + ")"; break; default: typeStr = "unknown type";
	public String paramString()     {        String typeStr;        Dimension d = null;        String postfix = "";        if ( source != null )         {			if ( ( d = ((SComponent)source).getPreferredSize() ) != null )            	d = ((SComponent)source).getPreferredSize();			else			if ( ( d = ((SComponent)source).getPreferredPercentageSize() ) != null )             {            	d = ((SComponent)source).getPreferredPercentageSize();                postfix = "%";			 }         }		else        	return "empty source";        switch(id) {          case COMPONENT_SHOWN:              typeStr = "COMPONENT_SHOWN";              break;          case COMPONENT_HIDDEN:              typeStr = "COMPONENT_HIDDEN";              break;          case COMPONENT_MOVED:              typeStr = "COMPONENT_MOVED ("+                          d.width+postfix+"x"+d.height+postfix+")";              break;          case COMPONENT_RESIZED:              typeStr = "COMPONENT_RESIZED ("+                          d.width+postfix+"x"+d.height+postfix+")";              break;          default:              typeStr = "unknown type";        }        return typeStr;     }