File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Drag and Drop within the JTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Drag and Drop within the JTable" Watch "Drag and Drop within the JTable" New topic
Author

Drag and Drop within the JTable

Madhav Tallapaneni
Greenhorn

Joined: Jun 22, 2009
Posts: 2
Hi All,

I have one requirement to drag the component from JList to JTable cell. I am able to do it but once if i drag the component from list to table cell, table accepting the drop after this i am unable to move the same component from one cell to another cell within the table.

Any advice.

I have used the following logic for JTable and JList is drag enabled.



Thanks & Regards,
Maadhav..
Madhav Tallapaneni
Greenhorn

Joined: Jun 22, 2009
Posts: 2
Hi All,

I fixed this issue with some additional logic which allow me to drag and drop the string component from one cell to another cell within in the JTable.

I am attaching the new logic here, if any one needs use it.



Thanks & Regards,
Maadhav..
 
 
subject: Drag and Drop within the JTable
 
Similar Threads
Problem with JTable
jtable
JTable Cell Editor Problem
Coloring the Row in JTable
Drag and Drop from JList to JTable.