aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes DND JTable to JTree Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "DND JTable to JTree" Watch "DND JTable to JTree" New topic
Author

DND JTable to JTree

Mathias Nilsson
Ranch Hand

Joined: Aug 21, 2004
Posts: 367
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


SCJP1.4
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19759
    
  20

Check out Introduction on DnD as part of the Java Tutorial. You should find quite some information there.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Mathias Nilsson
Ranch Hand

Joined: Aug 21, 2004
Posts: 367
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

Joined: Aug 21, 2004
Posts: 367
Thanks!

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

// Mathias
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DND JTable to JTree