src/main/java/com/mxgraph/swing/mxGraphComponent.java
protected void removeCellOverlayComponent(mxICellOverlay overlay,
			Object cell)
	{
		if (overlay instanceof Component)
		{
			Component comp = (Component) overlay;

			if (comp.getParent() != null)
			{
				comp.setVisible(false);
				comp.getParent().remove(comp);
				eventSource.fireEvent(new mxEventObject(mxEvent.REMOVE_OVERLAY,
						"cell", cell, "overlay", overlay));
			}
		}
	}
/**
	 * Notified when an overlay has been removed from the graph. This
	 * implementation removes the given overlay from its parent if it is a
	 * component inside a component hierarchy.
	 */
Notified when an overlay has been removed from the graph. This
implementation removes the given overlay from its parent if it is a
component inside a component hierarchy.
Notified when an overlay has been removed from the graph . This implementation removes the given overlay from its parent if it is a component inside a component hierarchy .
protected void removeCellOverlayComponent(mxICellOverlay overlay,
			Object cell)
	{
		if (overlay instanceof Component)
		{
			Component comp = (Component) overlay;
			if (comp.getParent() != null)
			{
				comp.setVisible(false);
				comp.getParent().remove(comp);
				eventSource.fireEvent(new mxEventObject(mxEvent.REMOVE_OVERLAY,
						"cell", cell, "overlay", overlay));
			}
		}
	}
protected void removeCellOverlayComponent ( mxICellOverlay overlay , Object cell ) { if ( overlay instanceof Component ) { Component comp = ( Component ) overlay ; if ( comp . getParent ( ) != null ) { comp . setVisible ( false ) ; comp . getParent ( ) . remove ( comp ) ; eventSource . fireEvent ( new mxEventObject ( mxEvent . REMOVE_OVERLAY , "cell" , cell , "overlay" , overlay ) ) ; } } }
Notified when an overlay has been removed from the graph.
Notified when an overlay has been removed from the graph .