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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.