O'Reilly logo

Core SWING advanced programming by KIM TOPLEY

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. DRAG-AND-DROP

Topics in this Chapter

  • The Drag Source

  • The Drop Target

  • The Lifecycle of a Drag-and-Drop Operation

  • Dragging Files

  • Transferring Text Using Drag-and-Drop

  • Implementing Drag-and-Drop for Tree Structures

This chapter looks at the drag-and-drop feature that was introduced in the Java 2 platform. Although it isn't strictly part of Swing, drag-and-drop comes within the somewhat larger scope of the Java Foundation Classes and there is no doubt that making proper use of this feature can greatly enhance the user interface of all but the simplest of applications. Drag-and-drop builds on the data transfer feature originally introduced to support cut-and-paste in Java Developer's Kit (JDK) 1.1. Because of this dependency, there is extensive ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required