Java drag and drop images in a list
问题 I am looking for a way to display a series of pictures (JPanels with image and maybe some other small components), in a horizontal sequence. The user should be able to rearrange the order of the images, by drag and drop. How do I do this? Is JList with some custom components and D&D the way to go? Some issues to think about (having the components the same dimension increases performance I've heard). 回答1: The following example shows you how to show images horizontally in a list and use drag &