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. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  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.


Download the files for Java
tocbean/DragAndDropLayers.java Main class




Development licensing Deployment licensing
Engine Developer Kit Engine Runtime
ArcView
ArcEditor
ArcInfo