Drag and drop layers


Purpose
This sample demonstrates how to enable the drag and drop capabilities of the TOC bean. This sample also creates an event listener for the onMouseDown event to create new map frames in the page layout.

How to use

See How to use ArcGIS samples for help on running the sample.

  1. Start the DragAndDropLayers application.
  2. Check the Layer Drag and Drop box. The drag and drop capability is enabled.
  3. Right-click and drag the page layout. New map frames are created.

If you installed the samples feature, you will find the files associated with this sample in <Your Developer Kit install location>\DeveloperKit10.4\Java\Samples\ArcObjects.

tocbean/DragAndDropLayers.java Main class




Development licensing Deployment licensing
Engine Developer Kit Engine
ArcGIS for Desktop Basic
ArcGIS for Desktop Standard
ArcGIS for Desktop Advanced