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.
- Run the CreateBookmark application.
- Open a map document, and zoom in to a certain extent.
- Click the down arrow next to the Spatial Bookmarks toolbar item and click Create. A dialog box opens.
- Type the bookmark name. The new spatial bookmark is added to the multi-item toolbar menu. A JOptionPane input dialog is used to create a name for the bookmark. The count is maintained by using IEnumSpatialBookmark.
Download the files for Java
toolbarbean/CreateBookmark.java | Main class. |
toolbarbean/commands/CreateBookmarkCommand.java | Creates a Bookmark Command class. |
toolbarbean/ui/SpatialBookmarks.java | JDialog. |
Development licensing | Deployment licensing |
---|---|
Engine Developer Kit | Engine Runtime |
ArcView | |
ArcEditor | |
ArcInfo |