The example demonstrates how to install a JYScrollPaneMap into a JScrollPane. The control appears only if vertical and horizontal scrollbars are visible.

All relevant lines are highlighted. Press the "Run..." button to start the demo.