code: protected void renderLayers (Graphics2D g, Component pcomp, Rectangle bounds,
          boolean[] clipped, Rectangle dirty)
      {
          JLayeredPane lpane = JLayeredPane.getLayeredPaneAbove(pcomp);
          if (lpane != null) {
              renderLayer(g, bounds, lpane, clipped, JLayeredPane.PALETTE_LAYER);
              renderLayer(g, bounds, lpane, clipped, JLayeredPane.MODAL_LAYER);
              renderLayer(g, bounds, lpane, clipped, JLayeredPane.POPUP_LAYER);
              renderLayer(g, bounds, lpane, clipped, JLayeredPane.DRAG_LAYER);
          }
  
          // if we have a MediaOverlay, let it know that any sprites in this region need to be
          // repainted as the components beneath them have just been redrawn
          if (_overlay != null) {
              _overlay.addDirtyRegion(dirty);
          }
      }
docs: Renders all components in all {@link JLayeredPane} layers that intersect the supplied
  bounds.