| # Drag and Drop | Documentation Contents

> Drag and Drop enables data transfer both across JavaTM programming language and native applications, between Java programming language applications, and within a single Java programming language application.

Enhancements

- Enhancements and bug fixes in J2SE 5.0 can be found in the AWT Release Notes

- Enhancements in J2SE 1.4 include new support for data transfer using Swing. See Swing Data Transfer and the How to Use Drag and Drop and Data Transfer portion of The Swing Tutorial.

- Enhancements in previous release J2SE 1.3 included two new methods in class `java.awt.datatransfer.DataFlavor`. `
  - getReaderForText(Transferable transferable)
  - selectBestTextFlavor(DataFlavor[] availableFlavors)
  ` Without the use of these methods, unicode-encoded text will not be dragged onto some native-application documents correctly (an extra character will be left at the beginning of the text. These methods deliver ISO8859-1 text instead of unicode text to avoid this problem.

Drag and Drop Specification

- Drag and Drop Specification. Also available in pdf

Drag and Drop API Specification

- java.awt.dnd

Related Information

> Located on the Java Software website:

- How to Use Drag and Drop and Data Transfer from The Swing Tutorial
- The JFC Home Page

Copyright © 2002 Sun Microsystems, Inc. All Rights Reserved. Please send Drag and Drop comments to our Java Drag and Drop team: java-dnd@java.sun.com | Java Software