This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Drag and Drop within the JTable

 
Madhav Tallapaneni
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic