This discussion is archived
1 Reply Latest reply: Sep 11, 2012 10:51 AM by morgalr RSS

JFileChooser move files via drag & drop

chummer Newbie
Currently Being Moderated
Hi all,

I have a file dialog realized with a JFileChooser and I would like to enable a kind of drag & drop.
I don't need dragging files out of or into the file chooser. Just inside to move a a selected file into a sub folder.
It seems that jfilechooser.setDragEnabled(true) does activate drag & drop support between the file chooser and the os, but doesn't permit to move a file inside the same file chooser.

What would be the right approach to meet this requirement?
Thanks in advance.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points