java/swing: drag and drop with a list of strings
What 开发者_JAVA百科data flavor should I use to transfer a list of strings? I guess I can serialize the list of strings in JSON format, but was hoping I could just transfer a List directly.
From Java Tutorial
For example, to create a data flavor for the java.util.ArrayList class:
new DataFlavor(ArrayList.class, "ArrayList");
Transferring Data across the JVM boundary
精彩评论