JList userMessageList = new JList(...); Jlist userFolderList = new JList(...) userMessageList.setTransferHandler(...); // pass a handler for the drag-out userFolderList.setTransferHandler(...); // pass a handler for the drop-into
except you have to actually write the TransferHandlers. There are other ways to do it (DragGesture/DropTarget) but TransferHandlers should be easier to use.
Do take a look at the three notes I included in the other thread. They might be helpful.