getLayeredPaneAbove(component).setLayer(component, layer);
component.putClientProperty(LAYER_PROPERTY, new Integer(layer));
  public static void putLayer(JComponent component, int layer)  {    getLayeredPaneAbove(component).setLayer(component, layer);  }