protected void paintLayers(Graphics g){
synchronized (getTreeLock()) {
    int i=getComponentCount() - 1;
    if (i < 0) {
      return;
    }
    for (; i >= 0; i--) {
      Component comp=getComponent(i);
      final boolean isLayer=comp instanceof Layer;
      if (isLayer && comp.isVisible()) {
        comp.paint(g);
      }
    }
  }
}

protected void paintLayers ( Graphics g ) { synchronized ( getTreeLock ( ) ) { int i = getComponentCount ( ) - 1 ; if ( i < 0 ) { return ; } for ( ; i >= 0 ; i -- ) { Component comp = getComponent ( i ) ; final boolean isLayer = comp instanceof Layer ; if ( isLayer && comp . isVisible ( ) ) { comp . paint ( g ) ; } } } }
a method that grabs the component list of the mapbean , and renders just the layers from back to front . no clipping is set , other than what is set on the graphics object .
