Say I have two JLists, called firstList and secondList. Now I want to be able to drag a selection of indices from firstList into a single indice of secondList and then to be able to do something with that information, i.e. I want the indices from firstList and the index from secondList to passed to a method.

I know there is already DnD stuff in java, but I don't know if it will be suitable for my requirement. It seems that the existing DnD stuff, without lots of modification, will quite easily drag some text from a JList into, say, a JTextField...