• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DND JTable to JTree

 
Mathias Nilsson
Ranch Hand
Posts: 367
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone give me some pointers on how to drag from a JTable and drop in a JTree. java 1.5 must be supported.

// Mathias
 
Rob Spoor
Sheriff
Pie
Posts: 20512
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out Introduction on DnD as part of the Java Tutorial. You should find quite some information there.
 
Mathias Nilsson
Ranch Hand
Posts: 367
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks but as I mentioned I must use java1.5 and not 6

The canImport(TransferHandler.TransferSupport) is since 1.6
[ November 07, 2008: Message edited by: Mathias Nilsson ]
 
Mathias Nilsson
Ranch Hand
Posts: 367
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!

I solved it.
DragSourceListener, DragGestureListener in the JTable and DropTargetListener in the JTree.

// Mathias
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic