NOTA: La traducción de esta documentación es un esfuerzo personal y voluntario, no es un documento oficial de Sun Microsystems ni Oracle ni está patrocinado por ninguna de estas empresas. Los documentos originales (en inglés) están disponibles en: http://java.sun.com/docs/books/tutorial/.
Dirija cualquier comentario, petición, felicitación, etc. a tutorialesjava_@RROBA_codexion.com.
Si desea ayudar a mantener en funcionamiento esta web, colaborar con la traducción de estos documentos o necesita que se traduzca algĂșn capĂ­tulo en concreto puede realizar una donación directa mediante Paypal:
Solving Common Data Transfer Problems (The Java™ Tutorials > Creating a GUI with JFC/Swing > Drag and Drop and Data Transfer)
Trail: Creating a GUI with JFC/Swing
Lesson: Drag and Drop and Data Transfer
Solving Common Data Transfer Problems
Home Page > Creating a GUI with JFC/Swing > Drag and Drop and Data Transfer
Solving Common Data Transfer Problems
This section discusses problems that you might encounter when using data transfer.

Problem: My drag gesture recognizer is not working properly with table/list/tree/text.

Do not use your own drag gesture recognizers with these components. Use setDragEnabled(true) and a TransferHandler.

Problem: I am unable to drop data onto my empty JTable.

You need to call seFillsViewportHeight(true) on the table. See Empty Table Drop for more information.

I need more common problems...

Previous page: Further Information
Next page: Writing Event Listeners