if (layers.size() == 0) return 0; return ((Integer)(layers.lastKey ())).intValue ();
Component[] components = getComponents(); int highest; if (components.length == 0) highest = 0; else { highest = Integer.MIN_VALUE; for (int i = 0; i < components.length; i++) highest = Math.max(highest, getLayer(components[i])); } return highest;
  public int highestLayer()  {    if (layers.size() == 0)	    return 0;    return ((Integer)(layers.lastKey ())).intValue ();  }