JTable drag and drop rows



I can get simple dragging to occur by
-calling JTable.setDragEnabled(true),
-creating a TransferHandler and assigning it to JTable
(JTable.setTransferHandler)


With that, i can click on a row, then click it again and while holding
the left mouse down, drag it. What i see is a "folder" icon being
dragged. BUT, what i want to see is the ENTIRE row being picked up and
dragged. How would i go about doing this?

Do i have to now get into implementing DragGestureListener,
DragSourceListener and DropTargetListener, or can i still do it using
just the TransferHandler?
If I need to implement these "Drag" Interfaces, what methods do i need
to be concerned with if i want show a different icon when dragging (
how would implement so that when a user click on a row and drags it,
the entire row "picks up" and is moved ( is there a component i can
reference that wraps a row of a jtable)).

.



Relevant Pages

  • Re: How can i reorder rows in a Jtable using DnD?
    ... I can get simple dragging to occur by ... What i see is a "folder" icon being ... Do i have to now get into implementing DragGestureListener, ... If I need to implement these "Drag" Interfaces, ...
    (comp.lang.java.programmer)
  • Re: JTable Drag and Drop Rows
    ... I can get simple dragging to occur by ... What i see is a "folder" icon being ... Do i have to now get into implementing DragGestureListener, ... If I need to implement these "Drag" Interfaces, ...
    (comp.lang.java.gui)
  • Re: file and folder tasks
    ... [[Will dragging a file result in a move or a copy? ... > Ctrl + Shift + Drag ... >> If you do not see the common tasks pane, then try clicking on the Folder ...
    (microsoft.public.windowsxp.newusers)
  • Re: Listview Drag & Drop
    ... A crude way is to simply start dragging the moment ... drag targets so they can decide whether they'll even allow it to be dropped. ... Note that this only has an effect on the display of the pointer; ... setting the DragIcon property for the listView has NO ...
    (microsoft.public.vb.general.discussion)
  • Re: Moving items from desktop to folders
    ... When dragging a file in Explorer, you can control the operation that will be ... Hold the Control key to force a Copy. ... If you drag an item to another disk, it is copied, not moved. ... Mind you, this secret hasn't changed since 1989, but an old secret ...
    (microsoft.public.windowsxp.help_and_support)