CHAPTER 10

image

Adding Drag-and-Drop Functionality

In a drag-and-drop operation, data is moved (dragged) from one location and stored (dropped) in another. For example, most operating systems provide a utility similar to Windows Explorer, which allows you to perform drag-and-drop operations on a list of available files. Drag-and-drop functionality provides an intuitive visual representation of moving or copying data from one location to another and is an important part of most modern operating systems. Many applications use it in a variety of ways, so it’s helpful to be familiar with the functionality that’s available in Java.

The standard Swing components ...

Get Pro Java 8 Programming, Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.