Reordering JList with Drag and Drop

前端 未结 3 1939
余生分开走
余生分开走 2020-12-11 03:02

I encountered a problem regarding reordering elements in a JList using Drag and Drop. This following code is a modification of a code where you could drag elements from one

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-11 03:25

    See the Drop Demo from the Swing tutorial on DnD for an example that will drop on the same JList or another JList.

提交回复
热议问题