if (myComp == null) throw new IllegalArgumentException ("component is not in this JLayeredPane"); Integer layerObj = (Integer) componentToLayer.get(myComp);
else layerObj = (Integer) componentToLayer.get(c);  if (layerObj == null) layerObj = DEFAULT_LAYER;
  public int getLayer(Component c)  {    Component myComp = c;    while(! componentToLayer.containsKey(myComp))      {	myComp = myComp.getParent();	if (myComp == null)	  break;      }    if (myComp == null)      throw new IllegalArgumentException	("component is not in this JLayeredPane");    Integer layerObj = (Integer) componentToLayer.get(myComp);    return layerObj.intValue();  }