• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable to Jtable Drag and Drop  RSS feed

 
Puneet Nayyar
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I've a requirement of Drag and Drop between two JTables.
It's like allowing Drag and Drop both ways i.e. Drag from Table1 to Table2 and also allowing drag from Table2 to Table1.
I am able to drag and drop one way but both ways it's not working.
Can you please provide some code snippet to help me on this?

Thanks,
Puneet

 
Rob Spoor
Sheriff
Posts: 20898
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Puneet Nayyar wrote:I've an urgent requirement ...

http://faq.javaranch.com/java/EaseUp


You added code for drag and drop one way, right? Wouldn't reproducing that code work for the other way as well?
 
Puneet Nayyar
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yup it should work the other way around. But somehow it's not working...
Thats why I ended up asking here Rob.
Thanks!!
 
Rob Spoor
Sheriff
Posts: 20898
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about a little code then? But please, limit it to an SSCCE.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!